# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
90816 | tpoppo | Combo (IOI18_combo) | C++14 | 2 ms | 200 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>
#include "combo.h"
using namespace std;
int n;
string pref;
vector<string> valid ={"A","B","X","Y"};
void get_next(){
string t1 = pref + valid[1];
for(int i=0;i<3;i++)
t1 += pref + valid[2] + valid[i];
pref += valid[press(t1) - (int) pref.size()];
}
void last(){
if(press(pref + valid[0] + pref + valid[1]) == pref.size()+1){
if(press(pref + valid[0]) == pref.size()+1){
pref += valid[0];
}else{
pref += valid[1];
}
}else{
pref += valid[2];
}
}
string guess_sequence(int N) {
n = N;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |