답안 #583857

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
583857 2022-06-26T10:30:49 Z MilosMilutinovic Esej (COCI15_esej) C++14
0 / 80
65 ms 65536 KB
/**
 *    author:  wxhtzdy
 *    created: 26.06.2022 12:23:35
**/
#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);  
  int a, b;
  cin >> a >> b;                   
  vector<vector<char>> s;
  for (char i = 'a'; i <= 'z'; i++) {
    for (char j = 'a'; j <= 'z'; j++) {
      for (char k = 'a'; k <= 'z'; k++) {
        for (char p = 'a'; p <= 'z'; p++) {
          for (char q = 'a'; q <= 'z'; q++) {
            s.push_back({i, j, k, p, q});
          }
        }
      }
    }
  }
  function<void(vector<char>)> Print = [&](vector<char> c) {
    for (int i = 0; i < 4; i++) {
      cout << c[i];
    }
    cout << " ";
  };
  while (b--) {
    Print(s.back());
    s.pop_back();
  }                                                                  
  return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Runtime error 57 ms 65536 KB Execution killed with signal 9
2 Runtime error 57 ms 65536 KB Execution killed with signal 9
3 Runtime error 60 ms 65536 KB Execution killed with signal 9
4 Runtime error 59 ms 65536 KB Execution killed with signal 9
5 Runtime error 65 ms 65536 KB Execution killed with signal 9
6 Runtime error 61 ms 65536 KB Execution killed with signal 9
7 Runtime error 55 ms 65536 KB Execution killed with signal 9
8 Runtime error 59 ms 65536 KB Execution killed with signal 9
9 Runtime error 56 ms 65536 KB Execution killed with signal 9
10 Runtime error 57 ms 65536 KB Execution killed with signal 9