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 "combo.h"
#include <bits/stdc++.h>
using namespace std;
std::string guess_sequence(int N) {
vector<char> c = {'A', 'B', 'X', 'Y'};
string p = "";
int coins = press(p);
while(coins != 3){
for(auto &i : c){
if(press(p+i) > coins){
p += i;
coins = press(p);
break;
}
}
}
return p;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |