Submission #1071653

#TimeUsernameProblemLanguageResultExecution timeMemory
1071653RigobertusCombo (IOI18_combo)C++17
10 / 100
62 ms952 KiB
#include <iostream> #include <algorithm> #include <vector> #include <map> #include <set> #include <queue> #include <string> //#define int long long #include "combo.h" using namespace std; string guess_sequence(int n) { string c[4] = { "A", "B", "X", "Y"}; string s = ""; while (int(s.size()) < n) { for (int i = 0; i < 4; i++) { string p = s + c[i]; if (press(p) == int(p.size())) { s = p; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...