# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1142124 | alilou | 콤보 (IOI18_combo) | C++20 | 1084 ms | 408 KiB |
#include<bits/stdc++.h>
#include "combo.h"
using namespace std;
string guess_sequence(int n){
const int m=4;
string buttons="ABXY";
string s="";
for(int i ; i<n ; i++){
for(int j ; i<m-1 ; i++){
int lenght=press(s+buttons[j]);
if (lenght==i+1){
s+=buttons[j];
break;
}
if (s.size()!=i+1)s+=buttons[m-1];
}
s+=buttons[m-1];
}
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |