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;
#define REP(i,n) for(int i=0; i<(n); i++)
string guess_sequence(int N) {
string possible = "ABXY";
REP(i,N){
int nxtguess = press("ABXY");
if (nxtguess == 3) {
possible = "ABX";
}
if (nxtguess == 2) {
possible = "AB";
}
if (nxtguess == 1) {
possible = "A";
}
}
return possible;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |