| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 97300 | E869120 | 콤보 (IOI18_combo) | C++14 | 64 ms | 488 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
string G = "ABXY", I;
string guess_sequence(int N) {
int fir = 3;
for (int i = 0; i < 3; i++) {
int F = press(G.substr(i, 1));
if (F == 1) fir = i;
}
string S = G.substr(fir, 1);
for (int i = 0; i < 4; i++) { if (i != fir) I.push_back(G[i]); }
for (int i = 1; i < N; i++) {
int sec = 2;
for (int j = 0; j < 2; j++) {
int F = press(S + I.substr(j, 1));
if (F > i) sec = j;
}
S += I.substr(sec, 1);
}
return S;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
