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 s="";
for(int i=0;i<N;i++){
s+='A';
}
int in=0;
char a='B';
while(in<N){
in=press(s);
for(int i=in;i<N;i++){
s[i]=a;
}
if(a=='A') a='B';
else if(a=='B') a='X';
else if(a=='X') a='Y';
else if(a=='Y') a='A';
if(a==s[0]){
if(a=='A') a='B';
else if(a=='B') a='X';
else if(a=='X') a='Y';
else if(a=='Y') a='A';
}
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |