Submission #636398

#TimeUsernameProblemLanguageResultExecution timeMemory
636398SonCombo (IOI18_combo)C++14
10 / 100
61 ms484 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence( int N ){ string ans = ""; for ( int i = 1; i <= N; i++ ){ string t = ans + "A"; if ( press(t) == i ) { ans += "A"; continue; } t = ans + "B"; if ( press(t) == i ){ ans += "B"; continue; } t = ans + "X"; if ( press(t) == i ){ ans += "X"; continue; } ans += "Y"; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...