Submission #703332

#TimeUsernameProblemLanguageResultExecution timeMemory
703332SamNguyenCombo (IOI18_combo)C++14
10 / 100
73 ms544 KiB
#include "combo.h" using namespace std; namespace SUB1 { string guess_sequence(int N) { string ans = ""; for (int i = 0; i < N; i++) { for (char c : {'A', 'B', 'X', 'Y'}) { ans.push_back(c); if (press(ans) == i + 1) break; ans.pop_back(); } } return ans; } } string guess_sequence(int N) { return SUB1::guess_sequence(N); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...