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 "combo.h"
//#include "grader.cpp"
#include <bits/stdc++.h>
using namespace std;
set<char> go = {'A','B','X','Y'};
std::string guess_sequence(int N) {
std::string p = "";
for(int i = 0; i < N; i++){
for(auto c : go){
p.push_back(c);
if(c == *go.rbegin())break;
int x = press(p);
if(x > i){
break;
}
p.pop_back();
}
go.erase(p[0]);
}
return p;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |