# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1007132 | altern23 | Combo (IOI18_combo) | C++17 | 22 ms | 2096 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;
#define pb push_back
#define ll int
string guess_sequence(int n){
string f;
string s = "";
vector<string>vec;
for(int i=1;i<=n;i++){
if(i == 1 || i == n){
ll x = press(s + "A" + s + "B");
if(x >= i){
ll a = press(s + "A");
if(a == i){
s += "A";
if(i == 1) f = "A";
}
else{
s += "B";
if(i == 1) f = "B";
}
}
else{
ll a = press(s + "X");
if(a >= i){
s += "X";
if(i == 1) f = "X";
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |