Submission #503041

#TimeUsernameProblemLanguageResultExecution timeMemory
503041amukkalir콤보 (IOI18_combo)C++17
0 / 100
1 ms200 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string button[] = {"A", "B", "X", "Y"}; string guess_sequence(int N) { string S = ""; for(int i=0; i<3; i++) { if(press(button[i])) { S+=button[i]; break; } } if(S.empty()) S+="Y"; for(int i=0; i<4; i++) { for(int j=0; j<3; j++) { if(press(S + button[i] + button[j]) == 3) return S + button[i] + button[j]; } } return S + "YY"; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...