# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
109621 | polyfish | 콤보 (IOI18_combo) | C++14 | 48 ms | 568 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;
char C[] = {'A', 'B', 'X', 'Y'};
string S;
bool find_first_two_char(int x) {
int tmp = press(string()+C[x]+C[x+1]+C[x]+C[x+1]);
if (tmp==0)
return false;
if (tmp==1) {
if (press(string()+C[x])==1)
S += C[x];
else
S += C[x+1];
if (press(S+C[(x+2)%4])==2)
S += C[(x+2)%4];
else
S += C[(x+3)%4];
}
else if (tmp==2) {
if (press(string()+C[x])==1)
S = S + C[x] + C[x+1];
else
S = S + C[x+1] + C[x];
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |