Submission #254524

#TimeUsernameProblemLanguageResultExecution timeMemory
254524ErkhemkhuuCombo (IOI18_combo)C++17
10 / 100
111 ms540 KiB
#include <bits/stdc++.h> #include <combo.h> using namespace std; #define ll long long #define pb push_back #define mk make_pair #define F first #define S second string guess_sequence(int n) { string res = ""; vector <char> vc = {'A', 'B', 'X', 'Y'}; for(int i = 1; i <= n; i++) { for(int j = 0; j < 4; j++) { res += vc[j]; if(press(res) == i) break; res.pop_back(); } } return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...