# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1173291 | nuutsnoynton | Esej (COCI15_esej) | C++20 | 8 ms | 4536 KiB |
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll n, m, s, r, x, y, i, j, ans, t;
cin >> x >> y;
vector < string> v;
for ( i = 0; i < 26; i ++) {
string str = string(1,'a' + i);
v.push_back(str);
}
r = 0;
while(v.size() < x) {
string str = v[r];
for (j =0; j < 26; j ++) {
string str1 = str + char(j + 'a');
v.push_back(str1);
}
}
for (i = 0; i < x; i ++) {
cout << v[i] << " ";
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |