# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1236959 | pcp | Combo (IOI18_combo) | C++20 | 14 ms | 456 KiB |
#include "combo.h"
#include <iostream>
#include <string>
#include <vector>
using namespace std;
std::string guess_sequence(int N) {
std::string p = "";
string lts = "ABXY";
int bf=0;
while (p.size()<N){
for (char x : lts){
if (p.size()==0 || x != p[0] ){
if (press(p+x)==p.size()+1)p+=x;
}
}
}
return p;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |