Submission #303825

#TimeUsernameProblemLanguageResultExecution timeMemory
303825GilgameshCombo (IOI18_combo)C++17
0 / 100
1 ms200 KiB
#include "combo.h" std::string guess_sequence(int N) { std::string ans = ""; for(int i = 0; i < N; ++i){ int ab = press(ans + "A" + ans + ans + "B"); if(ab == i + 1){ int a = press(ans + "A"); if(a == i + 1){ ans += "A"; } else ans += "B"; } else{ int x = press(ans + "X"); if(x == i + 1){ ans += "X"; } else ans += "Y"; } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...