Submission #1148974

#TimeUsernameProblemLanguageResultExecution timeMemory
1148974ali2241Combo (IOI18_combo)C++20
10 / 100
20 ms456 KiB
#include "combo.h" #include <bits/stdc++.h> // #define int long long #define arr2 array<int, 2> #define arr3 array<int, 3> #define all(a) a.begin(), a.end() #define double long double // #pragma GCC target("avx2") using namespace std; string s; char chs[4] = {'A', 'B', 'X', 'Y'}; string guess_sequence(int n) { for (int i = 0; i < n; ++i) { for (int j = 0; j < 4; ++j) { if (press(s + chs[j]) > s.size()) { s += chs[j]; break; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...