Submission #1129903

#TimeUsernameProblemLanguageResultExecution timeMemory
1129903pedreitorzeldaCombo (IOI18_combo)C++20
10 / 100
22 ms464 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int N){ string ans = ""; vector<char>possible = {'A','B','X','Y'}; for(int i=0;i<N;i++){ for(int j=0;j<3;j++){ string q = ans+possible[j]; int tmp = press(q); if(tmp==i+1){ ans+=possible[j]; break; } }if(ans.size()==i)ans+=possible[3]; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...