# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1142074 | orzdraiduwu | Combo (IOI18_combo) | C++20 | 19 ms | 456 KiB |
#include "combo.h"
// #include <bits/stdc++.h>
#include <iostream>
using namespace std;
string guess_sequence(int n) {
string g = "";
int k = 0;
for(int i = 0 ; i < n ; i++) {
for(char c: {'A', 'B', 'X', 'Y'}) {
// cout << g << endl;
g.push_back(c);
int r = press(g);
if(r - k == 1) {
k++;
break;
}
g.pop_back();
}
}
// cout << g << endl << flush;
return g;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |