# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1259492 | truongdz_top12 | Combo (IOI18_combo) | C++20 | 0 ms | 408 KiB |
#include "combo.h"
#include<bits/stdc++.h>
using namespace std;
string guess_sequence(int N)
{
string res="";
for(int i=0;i<N;++i)
{
bool ok=false;
for(auto&c:{'A','B','X','Y'})
{
string p=res;
p+=c;
int res=press(p);
if(res==p.size())
{
res+=c;
ok=true;
break;
}
}
if(!ok)
res+='A';
}
return res;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |