Submission #596394

#TimeUsernameProblemLanguageResultExecution timeMemory
596394BelphegorCombo (IOI18_combo)C++14
10 / 100
58 ms436 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]==ans[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...