제출 #503043

#제출 시각아이디문제언어결과실행 시간메모리
503043amukkalir콤보 (IOI18_combo)C++17
5 / 100
2 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<4; 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...