# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
75411 | khalilmiri | Combo (IOI18_combo) | C++14 | 2 ms | 328 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>
#include <string>
#include <combo.h>
using namespace std;
vector<int> tab;
string guess_sequence(int N)
{ tab.push_back(0);
tab.push_back(1);
tab.push_back('X' - 'A');
tab.push_back('Y'- 'A');
do{ string g="";
for(int i=0;i<3;i++)
{
char x= tab[i] + 'A';
g=g+x;
}
if(press(g)==3)
{
return(g);
}
}while(next_permutation(tab.begin(),tab.end()));
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |