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;
const int t = chrono::high_resolution_clock::now().time_since_epoch().count();
inline int gen(int i) {
static mt19937 rng = mt19937(t%10000/10);
return rng() % i;
}
string guess_sequence(int N) {
string cur = ""; cur.reserve(N);
for (int i = 0; i < N; ++i) {
char s[5] = "ABXY";
random_shuffle(s, s+4, gen);
for (const char c: s) {
cur += c;
if (press(cur) == i+1) break;
cur.pop_back();
}
}
return cur;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |