# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
591378 | SlavicG | Game (IOI13_game) | C++17 | 6182 ms | 67484 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "game.h"
#include "bits/stdc++.h"
using namespace std;
using ll = long long;
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
ll rand(ll a, ll b) {return a + rng() % (b - a + 1);}
int n, m;
struct node {
node *left, *right;
ll val;
};
ll gcd(ll a, ll b, ll c) {
return __gcd(__gcd(a, b), c);
}
struct Treap {
struct node {
node *l, *r;
ll x, y;
ll gc, val;
node(ll X) {
l = r = NULL;
x = X, y = rand(1, (ll)1e9);
}
};
node *root = 0;
ll get(node *a) {
# | 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... |