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 <bits/stdc++.h>
using namespace std;
string guess_sequence(int N) {
string p = "";
string let = "ABXY";
int n = N;
for(int i = 0; i < n; i ++){
for(auto u : let){
p.push_back(u);
if(press(p) == (int)(p.size())){
break;
}
p.pop_back();
}
}
// cout << p << endl;
return p;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |