Submission #1132242

#TimeUsernameProblemLanguageResultExecution timeMemory
1132242bobthescienceCombo (IOI18_combo)C++20
0 / 100
0 ms408 KiB
#include<bits/stdc++.h> #include "combo.h" using namespace std; std::string guess_sequence(int N) { string p = ""; int ord; vector<char> add = {'A', 'B', 'X', 'Y'}; for (int i = 0;i < 4;i++) { if (press("" + add[i])) { p += add[i]; add.erase(add.begin() + i); break; } } for (int i = 1;i < N;i++) { for (char c :add) { if (press(p + c) > i) { p += c; break; } } } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...