제출 #554036

#제출 시각아이디문제언어결과실행 시간메모리
554036morasha3콤보 (IOI18_combo)C++17
10 / 100
53 ms552 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int N) { string p = ""; int prev=0,cur=0; for(int i=0;i<N;i++) { p+='A'; cur=press(p); if(cur==prev) { p[p.size()-1]='B'; cur=press(p); if(cur==prev) { p[p.size()-1]='X'; cur=press(p); if(cur==prev) { p[p.size()-1]='Y'; cur=prev+1; } } } prev=cur; } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...