| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1277252 | jenterjongle45 | Combo (IOI18_combo) | C++20 | 17 ms | 448 KiB |
#include "combo.h"
#include<bits/stdc++.h>
using namespace std;
string P;
void Check(int Last=0,char No='w'){
if(No!='X'&&press(P+"X")>Last){
P+="X";
return;
}
if(No!='A'&&press(P+"A")>Last){
P+="A";
return;
}
if(No!='B'&&press(P+"B")>Last){
P+="B";
return;
}
if(No!='Y'&&press(P+"Y")>Last){
P+="Y";
return;
}
}
string guess_sequence(int N) {
Check();
while(int(P.size())<N){
Check(int(P.size()),P[0]);
}
return P;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
