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"
#define pb push_back
using namespace std;
string guess_sequence(int n) {
string s="";
for(int i=1; i<=n; i++) {
s.pb('A');
if(press(s) == i) continue;
s.pop_back();
s.pb('B');
if(press(s) == i) continue;
s.pop_back();
s.pb('X');
if(press(s) == i) continue;
s.pop_back();
s.pb('Y');
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |