# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1137368 | cpdreamer | Combo (IOI18_combo) | C++20 | 0 ms | 408 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define P pair
#define F first
#define all(v) v.begin(),v.end()
#define V vector
#define pb push_back
std::string guess_sequence(int n){
string t;
V<char>vp={'A','B','X','Y'};
char x;
bool f=false;
for(int i=0;i<3;i++){
if(press(t+vp[i])==1){
x=vp[i];
t+=vp[i];
f=true;
break;
}
}
if(!f){
t+=vp[3];
x=vp[3];
}
V<char>vp1;
for(auto u:vp){
if(u!=x) {
vp1.pb(u);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |