Submission #1191845

#TimeUsernameProblemLanguageResultExecution timeMemory
1191845p4r4d0_x콤보 (IOI18_combo)C++20
5 / 100
0 ms408 KiB
#include "combo.h" #include<bits/stdc++.h> using namespace std; string guess_sequence(int N) { vector<char> a = {'A', 'B', 'X', 'Y'}; string s = ""; for(int i = 0; i < 4; ++i){ s += a[i]; if(press(s) == 1){ break; } else s = ""; } string st = ""; for(int i = 0; i < 4; ++i){ st = s; st += a[i]; if(press(st) == 2){ s = st; break; } } for(int i = 0; i < 4; ++i){ st = s; st += a[i]; if(press(st) == 3){ s = st; break; } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...