# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1279278 | tull | 콤보 (IOI18_combo) | C++20 | 17 ms | 448 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
std::string guess_sequence(int N) {
int p=0,r;
char c[]={'A','B','X','Y'};
char sk;
string a="";
for(auto&e:c){
r=press(a+e);
if(r>p){
++p;
a+=e;
sk=e;
break;
}
}
while (p<N)
{
for(auto&e:c){
if(e==sk)continue;
r=press(a+e);
if(r>p){
++p;
a+=e;
break;
}
}
}
return a;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |