| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 553635 | ITO | Combo (IOI18_combo) | C++11 | 35 ms | 612 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
std::string guess_sequence(int N) {
string al = "ABXY", t[3], s = {al[(press("XY") ? 2 : 0) + (press("BY") ? 1 : 0)]};
int ii = 0;
for (char cc : al) if (cc != s[0]) t[ii++].push_back(cc);
for (int i = 1; i < N - 1; i++) {
s.push_back(t[press(s + t[1] + s + t[2] + t[0] + s + t[2] + t[1] + s + t[2] + t[2]) - i][0]);
}
if (N != 1) {
s.push_back(t[(press(s + t[2]) == N ? 2 : (press(s + t[1]) == N ? 1 : 0))][0]);
}
return s;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
