Submission #788117

#TimeUsernameProblemLanguageResultExecution timeMemory
788117APROHACKCombo (IOI18_combo)C++17
10 / 100
80 ms448 KiB
#include <bits/stdc++.h> #include "combo.h" #define ll long long #define ff first #define ss second #define pb push_back using namespace std; std::string guess_sequence(int N) { string p = ""; string posi = "ABXY"; string ans = ""; for(int i = 0 ; i < N ; i ++){ int best = 0, res = 0; for(int j = 0 ; j < 4 ; j ++){ p = ans; p+= posi[j]; int coin = press(p); if(coin > res){ res = coin; best = j; } } ans += posi[best]; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...