# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1043931 | Hydrolyzed | Holiday (IOI14_holiday) | C++17 | 60 ms | 65536 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;
using ll = long long;
const int MxN = 100010;
struct node_t;
using pnode_t = node_t *;
struct node_t {
ll v;
int cnt;
pnode_t l, r;
node_t(ll _v=0ll, int _cnt=0):
v(_v), cnt(_cnt), l(nullptr), r(nullptr) {}
friend node_t operator + (const node_t &lhs, const node_t &rhs) {
return node_t(lhs.v + rhs.v, lhs.cnt + rhs.cnt);
}
};
struct interval_t {
ll v;
int l, r;
interval_t(ll _v):
v(_v), l(0), r(0) {}
};
int n, stp, days;
# | 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... |