Submission #303828

#TimeUsernameProblemLanguageResultExecution timeMemory
303828GilgameshCombo (IOI18_combo)C++17
10 / 100
62 ms532 KiB
#include "combo.h" std::string guess_sequence(int N) { std::string ans = ""; for(int i = 0; i < N; ++i){ int a = press(ans + "A"); int b = press(ans + "B"); if(a == i + 1 || b == i + 1){ 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...