# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
88624 | asifthegreat | Esej (COCI15_esej) | C++14 | 12 ms | 2216 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 <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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |