답안 #583856

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
583856 2022-06-26T10:29:26 Z MilosMilutinovic Esej (COCI15_esej) C++14
40 / 80
51 ms 25840 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++) {
          s.push_back({i, j, k, p});
        }
      }
    }
  }
  function<void(vector<char>)> Print = [&](vector<char> c) {
    for (int i = 0; i < 4; i++) {
      cout << c[i];
    }
    cout << " ";
  };
  while (a--) {
    Print(s.back());
    s.pop_back();
  }                                                                  
  return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 28 ms 25332 KB Output is correct
2 Correct 33 ms 25252 KB Output is correct
3 Incorrect 28 ms 25304 KB Output isn't correct
4 Incorrect 27 ms 25296 KB Output isn't correct
5 Correct 31 ms 25332 KB Output is correct
6 Incorrect 30 ms 25340 KB Output isn't correct
7 Incorrect 37 ms 25340 KB Output isn't correct
8 Correct 51 ms 25708 KB Output is correct
9 Correct 41 ms 25840 KB Output is correct
10 Incorrect 27 ms 25336 KB Output isn't correct