# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1126199 | MisterReaper | 게임 (IOI13_game) | C++17 | 3305 ms | 62780 KiB |
#include "game.h"
#include <bits/stdc++.h>
using i64 = long long;
using u64 = unsigned long long;
// #define DEBUG
#ifdef DEBUG
#include "/home/ahmetalp/Desktop/Workplace/debug.h"
#else
#define debug(...) void(23)
#endif
std::mt19937_64 rng(23);
i64 gcd(i64 a, i64 b, i64 c) {
return std::gcd(a, std::gcd(b, c));
}
int R, C;
struct treap {
struct node {
u64 wei = rng();
node *l = nullptr, *r = nullptr;
int pos;
i64 sum, val;
int lo, hi;
node() {}
node(int p, i64 v) : pos(p), sum(v), val(v), lo(p), hi(p) {}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |