Submission #787171

#TimeUsernameProblemLanguageResultExecution timeMemory
787171resolve100Combo (IOI18_combo)C++14
0 / 100
0 ms208 KiB
#include<bits/stdc++.h> #include "combo.h" #define ll long long #define ull unsigned ll #define pb push_back #define fast ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0) using namespace std; string guess_sequence(int N){ string chars[] = {"A", "B", "X", "Y"}; string out; for (int i = 0; i < N; i++){ for (int j = 0; j < 4; j++){ int num = press(out+chars[j]); if (num == i+1) { out.append(chars[i]); break; } } } return out; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...