# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1171646 | nguyenkhangninh99 | 콤보 (IOI18_combo) | C++17 | 0 ms | 320 KiB |
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;
string guess_sequence(int N){
string res = "";
vector<string> k;
k.push_back("A");
k.push_back("B");
k.push_back("X");
k.push_back("Y");
int n; cin >> n;
for (int i = 1; i <= n; i++){
for(string x: k){
if(press(res + x) == res.size() + 1){
res += x;
break;
}
}
}
return res;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |