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 ans = "";
for(int i = 1 ; i <= n ; i ++){
string cur = "A";
if(press(ans + "B") == i)
cur = "B";
else if(press(ans + "X") == i)
cur = "X";
else if(press(ans + "Y") == i)
cur = "Y";
ans += cur;
}
return(ans);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |