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 <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <string>
//#define int long long
#include "combo.h"
using namespace std;
string guess_sequence(int n) {
string c[4] = { "A", "B", "X", "Y"};
string s = "";
for (int i=0; i<n; i++)
while (int(s.size()) < n) {
for (int i = 0; i < 4; i++) {
string p = s + c[i];
if (press(p) == int(p.size())) {
s = p;
}
}
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |