Submission #1124683

#TimeUsernameProblemLanguageResultExecution timeMemory
1124683ZyadH1Combo (IOI18_combo)C++17
0 / 100
27 ms408 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int N) { string p , buttons = "ABXY"; string ans; while(1){ for(int i = 0 ; i < 4 ;i++){ p = ans; p += buttons[i]; int coins = press(p); if(coins == p.size()){ ans = p; } if(coins == N) break; } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...