Submission #1038687

#TimeUsernameProblemLanguageResultExecution timeMemory
1038687vjudge1Esej (COCI15_esej)C++17
80 / 80
134 ms1948 KiB
#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 timeMemoryGrader output
Fetching results...