# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
102839 | wxh010910 | Holiday (IOI14_holiday) | C++17 | 116 ms | 9544 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 "holiday.h"
using namespace std;
class node {
public:
node* p;
node* l;
node* r;
int sz;
int key;
int self;
long long sum;
node(int key, int self): key(key), self(self) {
p = l = r = NULL;
sum = self;
sz = 1;
}
void pull() {
sz = 1;
sum = self;
if (l != NULL) {
l->p = this;
sz += l->sz;
sum += l->sum;
}
if (r != NULL) {
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... |