| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1322193 | aritro_ | Combo (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include<bits/stdc++.h>
using namespace std;
string guess_sequence(int n){
string ans="";
int cur=0;
while(cur<n){
if(press(ans+'A')>cur){
cur++;
ans+='A';
}else if(press(ans+'B')>cur){
cur++;
ans+='B';
}else if(press(ans+'X')>cur){
cur++;
ans+='X';
}else{
cur++;
ans+='Y';
}
}
return ans;
}
