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;
#define ll long long
#define ff first
#define ss second
#define pb push_back
string guess_sequence(int N){
string ans="";
for(int i=1;i<=N;i++){
int z=press(ans+'A');
int k=ans.size();
if(z==k+1){
ans+='A';
continue;
}
z=press(ans+'B');
if(z==k+1){
ans+='B';
continue;
}
z=press(ans+'X');
if(z==k+1){
ans+='X';
continue;
}
z=press(ans+'Y');
if(z==k+1){
ans+='Y';
continue;
}
}
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |