# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
521214 | krit3379 | Combo (IOI18_combo) | C++14 | 35 ms | 616 KiB |
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>
using namespace std;
#include<combo.h>
#define N 305
string guess_sequence(int n){
int i,j,cnt;
string s,t;
if(press("AB")){
if(press("A"))s="A";
else s="B";
}
else{
if(press("X"))s="X";
else s="Y";
}
if(s!="A")t+="A";
if(s!="B")t+="B";
if(s!="X")t+="X";
if(s!="Y")t+="Y";
if(n==1)return s;
for(i=2;i<n;i++){
string temp=s;
for(j=0;j<3;j++){
temp+=t[0];
temp+=t[j];
temp+=s;
}
temp+=t[1];
cnt=press(temp);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |