Submission #480323

#TimeUsernameProblemLanguageResultExecution timeMemory
480323omgCombo (IOI18_combo)C++17
0 / 100
1 ms200 KiB
#include<bits/stdc++.h> #include"combo.h" using namespace std; string guess_sequence(int N) { string R=""; int comboCur=0; string target="AXYZ"; for (int j=0;j<4; j++) { R.push_back(target[j]); if (press(R) > comboCur) { if (j==0) target="XYZ"; if (j==1) target="AYZ"; if (j==2) target="AXZ"; if (j==3) target="AXY"; break; } R.pop_back(); } comboCur++; for (int i=1;i<N;i++) { for (int j=0;j<3; j++) { R.push_back(target[j]); if (press(R) > comboCur) break; R.pop_back(); } } return R; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...