Submission #596392

#TimeUsernameProblemLanguageResultExecution timeMemory
596392BelphegorCombo (IOI18_combo)C++14
0 / 100
0 ms208 KiB
#include<bits/stdc++.h> #include "combo.h" using namespace std; typedef long long ll; string S = "ABXY"; string guess_sequence(int n){ string ans; int score = 0; ans.push_back('A'); for(int i=0; S[i]; i++){ ans.back() = S[i]; int w = press(ans); if(w>score){ score = w; break; } } for(int i=1; i<n; i++){ ans.push_back('A'); for(int j=0; S[j]; j++){ if(S[j]==S[0]) continue; ans.back() = S[j]; int w = press(ans); if(w>score){ score = w; break; } } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...