# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
102962 | wxh010910 | Game (IOI13_game) | C++17 | 13021 ms | 58156 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 <bits/stdc++.h>
#include "game.h"
using namespace std;
inline long long gcd(long long a, long long b) {
if (!a || !b) {
return a ^ b;
} else {
int shift = __builtin_ctzll(a | b);
b >>= __builtin_ctzll(b);
while (a) {
a >>= __builtin_ctzll(a);
if (a < b) {
swap(a, b);
}
a -= b;
}
return b << shift;
}
}
class node {
public:
node* p;
node* l;
node* r;
long long key;
long long self;
long long subtree;
Compilation message (stderr)
# | 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... |