# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1259494 | truongdz_top12 | Combo (IOI18_combo) | C++20 | 20 ms | 456 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 k=press(p);
if(k==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... |