Submission #992144

#TimeUsernameProblemLanguageResultExecution timeMemory
992144spycoderytCombo (IOI18_combo)C++17
10 / 100
55 ms848 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; std::string guess_sequence(int N) { vector<char> v = {'A','B','X','Y'}; string p = "",tmp; int cur=0; for(int i = 0;i<N;i++) { int ch = 0; for(int k = 0;k<4;k++) { tmp = p + v[k]; int res = press(tmp); if(res>cur){ cur = res; p = tmp; ch = 1; break; } } if(!ch)return p; } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...