# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1279277 | tull | Combo (IOI18_combo) | C++20 | 22 ms | 448 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
std::string guess_sequence(int N) {
int p=0,r;
char c[]={'A','B','X','Y'};
string a="";
while (p<N)
{
for(auto&e:c){
r=press(a+e);
if(r>p){
++p;
a+=e;
break;
}
}
}
return a;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |