| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1173294 | 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];
if ( str.size() == 15) break;
for (j =0; j < 26; j ++) {
string str1 = str + char(j + 'a');
v.push_back(str1);
}
}
r = 0;
for (i = 0; i < x; i ++) {
cout << v[r] << " ";
r ++;
r %= v.size();
}
cout << "\n";
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
