Submission #411582

#TimeUsernameProblemLanguageResultExecution timeMemory
411582nichkeCombo (IOI18_combo)C++14
0 / 100
1 ms200 KiB
#include <bits/stdc++.h> using namespace std; string but = "ABXY"; string t = ""; int ff; int press(string p); string guess_sequence(int N) { string res = ""; for (int i = 0; i < 4; i++) { t = res; t += but[i]; if (press(t)) { res = t; ff = i; break; } } for (int i = 1; i < N; i++) { t = res; for (int j = 0; j < 4; j++) { if (j == ff) continue; t += but[j]; if (press(t) == i + 1) { res = t; break; } } } return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...