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 "combo.h"
using namespace std;
string guess_sequence(int N) {
string R="";
int comboCur=0;
string target="ABXY";
for (int i=0;i<N;i++) {
for (int j=0;j<4; j++) {
R.push_back(target[j]);
if (press(R) > comboCur) break;
R.pop_back();
}
comboCur++;
}
return R;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |