Submission #136672

#TimeUsernameProblemLanguageResultExecution timeMemory
136672WongHokFong_cppCombo (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...