# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
992565 | voi | Combo (IOI18_combo) | C++17 | 2 ms | 600 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;
typedef long long ll;
const int ar = 2e5+2;
const ll mod = 1e9+7;
const int oo = 1e9;
string guess_sequence(int n) {
string s = "";
for(int i = 1; i <= n; ++i) {
if(press(s + 'A') == i) s += 'A';
else if(press(s + 'B') == i) s += 'B';
else if(press(s + 'X') == i) s += 'X';
else if(press(s + 'Y') == i) s += 'Y';
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |