# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1213556 | atillama | 콤보 (IOI18_combo) | C++20 | 19 ms | 456 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
string guess_sequence(int N) {
string x = "";
char c[] = {'A', 'B', 'X', 'Y'};
int i = 0;
while(x.size() != N){
int k = press(x + c[i]);
if(k == x.size() + 1){
x += c[i];
i = 0;
}else{
i++;
if(x.size() && c[i] == x[0]){
i++;
}
}
}
return x;
}
/*
g++ grader.cpp combo.cpp -o run.exe
.\run.exe
*/
//atilla
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |