제출 #136672

#제출 시각아이디문제언어결과실행 시간메모리
136672WongHokFong_cpp콤보 (IOI18_combo)C++14
10 / 100
91 ms440 KiB
#include <iostream> #include <cstdio> #include "combo.h" #include <string> using namespace std; string aaa[]={"","A","B","X","Y"}; int visited[5]; string guess_sequence(int N) { string ans; for (int i=1;i<=N;i++) { for (int j=1;j<=4;j++) { if (visited[j]==0&&press(ans+aaa[j])==i) {if (i==1) visited[j]=1;ans+=aaa[j];break;} } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...