# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
465769 | alexxela12345 | Distributing Candies (IOI21_candies) | C++17 | 1047 ms | 42912 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 "candies.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
mt19937 rd(179);
struct node {
node *l, *r;
int x, y;
int val;
int sz;
ll sum;
ll max_suf;
ll min_suf;
node(int x, int val) : x(x), val(val) {
l = r = NULL;
y = rd();
sz = 1;
sum = val;
max_suf = max(0, val);
min_suf = min(0, val);
}
};
int get_sz(node *n) { return (n == NULL) ? 0 : n->sz; }
# | 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... |