# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1142670 | younesb2 | Combo (IOI18_combo) | C++20 | 18 ms | 456 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
string guess_sequence(int n) {
string a="";
int b=0;
vector <char> c={'A','B','X','Y'};
for(int i=0;i<n;i++) {
for(const auto& i : c) {
a.push_back(i);
int d=press(a);
if(d-b==1) {
b++;
break;
}
a.pop_back();
}
}
return a;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |