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"
#define ll long long
#define pii pair<int, int>
#define st first
#define nd second
#define pb push_back
using namespace std;
string s = "ABXY";
string guess_sequence(int N) {
string cur = "";
for (int i = 0; i < N; ++i) {
for (int j = 0; j < 4; ++j) {
if (press(cur + s[j]) == i + 1) {
cur += s[j];
break;
}
}
}
return cur;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |