Submission #88624

#TimeUsernameProblemLanguageResultExecution timeMemory
88624asifthegreatEsej (COCI15_esej)C++14
80 / 80
12 ms2216 KiB
#include <iostream> #include <algorithm> #include <string> #include <bitset> using namespace std; int main() { string s; for(char a = 'a'; a <= 'm';a++)s.push_back(a); int a,b; cin >> a >> b; int cnt = 0; do{ cout << s << " "; cnt++; if(cnt == b)break; }while(next_permutation(s.begin(),s.end())); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...