# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1185773 | Mamikonm1 | Combo (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include<bits//stdc++.h>
#include "combo.h"
using namespace std;
string guess_sequence(int N) {
string s, ch = "ABXY";
for(int i=1;i<=N;++i){
for(char j:ch){
if(s.empty() or s[0]!=j){
s=s+j;
if(pass(s)==i)break;
}
s.pop_back();
}
}
return s;
}