# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1142667 | younesb2 | 콤보 (IOI18_combo) | C++20 | 0 ms | 0 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 i=press(a);
if(i-b==1) {
b++;
break;
}
a.pop_back();
}
}
return a;
}