# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1170613 | Francisco_Martin | Combo (IOI18_combo) | C++20 | 11 ms | 468 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
string guess_sequence(int N){
string ans;
for(int i=0; i<N; i++){
if(press(ans+"A"+ans+"B")>i){
if(press(ans+"A")>i) ans+="A";
else ans+="B";
}else{
if(press(ans+"X")>i) ans+="X";
else ans+="Y";
}
}
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |