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"
string guess_sequence(int N) {
string curr = "";
string base = "ABXY";
int score = 0;
while (N--){
bool a = false;
for (int i = 0; i<4; i++){
string sp = curr;
sp.push_back(base[i]);
int sc = press(sp);
if (sc-score == 1){
score = sc;
curr.push_back(base[i]);
a = true;
}
}
if (!a){
break;
}
}
return curr;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |