# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1038687 |
2024-07-30T06:13:11 Z |
vjudge1 |
Esej (COCI15_esej) |
C++17 |
|
134 ms |
1948 KB |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int const N=2e5+5;
int const mod=1e9+7;
int A,B;
int cnt=0;
void fun(string s){
if(cnt==B||s.length()>15)
return;
cnt++;
cout<<s<<' ';
for (int i = 'a'; i <='z'; ++i)
fun(s+char(i));
}
int main(){
cin>>A>>B;
fun("a");
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
5 ms |
472 KB |
Output is correct |
6 |
Correct |
26 ms |
788 KB |
Output is correct |
7 |
Correct |
97 ms |
1872 KB |
Output is correct |
8 |
Correct |
101 ms |
1872 KB |
Output is correct |
9 |
Correct |
106 ms |
1876 KB |
Output is correct |
10 |
Correct |
134 ms |
1948 KB |
Output is correct |