/**
* 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 < 5; i++) {
cout << c[i];
}
cout << " ";
};
while (b--) {
Print(s.back());
s.pop_back();
}
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
27 ms |
25272 KB |
Output isn't correct |
2 |
Incorrect |
28 ms |
25384 KB |
Output isn't correct |
3 |
Incorrect |
28 ms |
25348 KB |
Output isn't correct |
4 |
Incorrect |
29 ms |
25316 KB |
Output isn't correct |
5 |
Incorrect |
36 ms |
25328 KB |
Output isn't correct |
6 |
Incorrect |
35 ms |
25452 KB |
Output isn't correct |
7 |
Incorrect |
52 ms |
25960 KB |
Output isn't correct |
8 |
Incorrect |
44 ms |
25924 KB |
Output isn't correct |
9 |
Incorrect |
45 ms |
25936 KB |
Output isn't correct |
10 |
Incorrect |
45 ms |
25856 KB |
Output isn't correct |