# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1038687 | vjudge1 | Esej (COCI15_esej) | C++17 | 134 ms | 1948 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|---|---|---|---|
Fetching results... |