# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
749918 | vjudge1 | Combo (IOI18_combo) | C++17 | 0 ms | 0 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;
string guess_sequence(int n)
{
string ans;
vector<string> c = {"A", "B", "X", "Y"};
for(int i = 0; i < n; i++){
for(string j : c){
if(press(ans + j) == i+1){ans += j; break;}
}
}
return ans;
}