Submission #1071651

#TimeUsernameProblemLanguageResultExecution timeMemory
1071651RigobertusCombo (IOI18_combo)C++17
10 / 100
64 ms1104 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 = ""; for (int i=0; i<n; i++) 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...