#include <bits/stdc++.h>
using namespace std;
int A, B;
string createWord(int sz = 15){
string s = "";
while((int)s.size() < sz){
s += char((rand() % 26) + 'a');
}
return s;
}
int main()
{
srand(time(NULL));
ios_base::sync_with_stdio(false);
cin >> A >> B;
for(int i = 1; i <= B; i ++){
cout << createWord();
if(i != B) cout << " ";
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
384 KB |
Output is correct |
2 |
Correct |
1 ms |
416 KB |
Output is correct |
3 |
Correct |
1 ms |
384 KB |
Output is correct |
4 |
Correct |
1 ms |
384 KB |
Output is correct |
5 |
Correct |
2 ms |
384 KB |
Output is correct |
6 |
Correct |
7 ms |
768 KB |
Output is correct |
7 |
Correct |
26 ms |
2048 KB |
Output is correct |
8 |
Correct |
29 ms |
2040 KB |
Output is correct |
9 |
Correct |
26 ms |
1920 KB |
Output is correct |
10 |
Correct |
26 ms |
1920 KB |
Output is correct |