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;
std::string guess_sequence(int N) {
string p = "";
int x = 0;
while(x < N) {
if ( press(p + 'A') > x) {
++x;
p += 'A';
continue;
}
else if ( press(p + 'B') > x) {
++x;
p += 'B';
continue;
}
else if ( press(p + 'X') > x) {
++x;
p += 'X';
continue;
}
else if ( press(p + 'Y') > x) {
++x;
p += 'Y';
continue;
}
}
return p;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |