Submission #652713

#TimeUsernameProblemLanguageResultExecution timeMemory
652713_HDHCombo (IOI18_combo)C++11
10 / 100
89 ms452 KiB
#include <bits/stdc++.h> #include "combo.h" #ifdef LOCAL #include <debug.h> #else #define debug(...) 1001 #endif using namespace std; #define all(x) x.begin(), x.end() #define st first #define nd second #define lb lower_bound #define ub upper_bound #define sz(x) (int)x.size() #define pb push_back #define pob pop_back #define pf push_front #define pof pop_front #define file "TEMPLATE" typedef long long ll; typedef pair<int, int> ii; typedef array<int, 3> iii; typedef vector<int> vi; typedef vector<ll> vl; string z = "ABXY"; string guess_sequence(int n){ string p; for (int i = 0; i < n; i++){ for (auto x: z){ if (press(p + x) == i + 1){ p.pb(x); break; } } } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...