# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
102957 | wxh010910 | Game (IOI13_game) | C++17 | 13011 ms | 67676 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;
class node {
public:
node* p;
node* l;
node* r;
long long key;
long long self;
long long subtree;
node(long long key, long long self): key(key), self(self) {
p = l = r = NULL;
subtree = self;
}
void pull() {
subtree = self;
if (l != NULL) {
l->p = this;
subtree = __gcd(subtree, l->subtree);
}
if (r != NULL) {
r->p = this;
subtree = __gcd(subtree, r->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... |