Submission #855680

#TimeUsernameProblemLanguageResultExecution timeMemory
855680IS_RushdiCombo (IOI18_combo)C++17
10 / 100
39 ms1208 KiB
#include "combo.h" using namespace std; typedef long long ll; string guess_sequence(int N) { string p = ""; string x = "ABXY"; string S = ""; for(int i = 1; i <= N; i++){ for(int j = 0; j < 4; j++){ p = S; p+=x[j]; int coin = press(p); if(coin == i){ S+=x[j]; break; } } } return S; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...