제출 #1322201

#제출 시각아이디문제언어결과실행 시간메모리
1322201aritro_콤보 (IOI18_combo)C++20
0 / 100
1 ms400 KiB
#include<bits/stdc++.h> using namespace std; int press(string p); string guess_sequence(int n){ string ans=""; int cur=1; if(press("A")==1) ans="A"; else if(press("B")==1) ans="B"; else if(press("C")==1) ans="C"; else ans="D"; while(cur<n){ if(ans[0]!='A'&&press(ans+'A')>cur){ cur++; ans+='A'; }else if(ans[0]!='B'&&press(ans+'B')>cur){ cur++; ans+='B'; }else if(ans[0]!='X'&&press(ans+'X')>cur){ cur++; ans+='X'; }else if(ans[0]!='Y'){ cur++; ans+='Y'; } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...