Submission #280404

#TimeUsernameProblemLanguageResultExecution timeMemory
280404amallaCombo (IOI18_combo)C++17
10 / 100
114 ms664 KiB
#include "combo.h" #include<bits/stdc++.h> using namespace std; string guess_sequence(int N) { string p = "", Moves = "BXY", test; test = p; int coins = 0; for (int i = 0; i<N; ++i) { p += 'A'; coins = press(p); char best = 'A'; for (auto x : Moves) { p[i] = x; if (coins<press(p)) best = x; } p[i] = best; } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...