# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1145581 | guagua0407 | Combo (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include "combo.h"
#include "grader.cpp"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair<int,int>
#define f first
#define s second
#define all(x) x.begin(),x.end()
#define _ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
std::string guess_sequence(int n) {
string str;
for(int i=1;i<=n;i++){
for(auto c:{'X','Y','A','B'}){
if(press(str+c)==i){
str+=c;
break;
}
}
}
return str;
}