Submission #379630

#TimeUsernameProblemLanguageResultExecution timeMemory
379630SuhaibSawalha1Combo (IOI18_combo)C++14
10 / 100
85 ms672 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; vector<char> ca {'A', 'B', 'X', 'Y'}; string guess_sequence (int n) { string ans; for (int i = 0; i < n; ++i) { for (char c : ca) { if (press(ans + c) == i + 1) { ans += c; break; } } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...