제출 #1021356

#제출 시각아이디문제언어결과실행 시간메모리
1021356Hamed_Ghaffari콤보 (IOI18_combo)C++17
10 / 100
46 ms856 KiB
#include <bits/stdc++.h> #include "combo.h" #define pb push_back using namespace std; string guess_sequence(int n) { string s=""; for(int i=1; i<=n; i++) { s.pb('A'); if(press(s) == i) continue; s.pop_back(); s.pb('B'); if(press(s) == i) continue; s.pop_back(); s.pb('X'); if(press(s) == i) continue; s.pop_back(); s.pb('Y'); } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...