| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 1100448 | dzhoz0 | Combo (IOI18_combo) | C++17 | 51 ms | 1096 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/*
    ghmt the cutie :3
          UwU
*/
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
#define INF 1e18
#define f first
#define s second
#define pii pair<int, int>
#define vi vector<int>
string guess_sequence(int N) {
    mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
    vector<char> v = {'A', 'B', 'X', 'Y'};
    string p = "";
    for(int i = 0; i < 3; i++) {
        char c = v[i];
        p += c;
        if(press(p) == 1) {
            reverse(v.begin() + i, v.end());
            break;
        }
        p.pop_back();
    }
    if(p == "") p += v[3];
    v.pop_back();
    for(int i = 1; i < N; i++) {
        shuffle(v.begin(), v.end(), rng);
        for(int j = 0; j < 2; j++) {
            p += v[j];
            if(press(p) == i + 1) {
                break;
            }
            p.pop_back();
        }
        if(p.size() != i + 1) {
            p += v[2];
        }
    }
    return p;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
