# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
102846 | wxh010910 | Meetings (IOI18_meetings) | C++17 | 3537 ms | 421616 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 "meetings.h"
using namespace std;
typedef long long ll;
struct node_t {
int left, right;
ll k, b, l, r;
bool cover;
node_t(bool cover = false, ll k = 0, ll b = 0):cover(cover), k(k), b(b) {
}
void apply(node_t tag) {
if (tag.cover) {
k = b = l = r = 0;
cover = true;
}
k += tag.k;
b += tag.b;
l += tag.k * left + tag.b;
r += tag.k * right + tag.b;
}
void reset() {
k = b = 0;
cover = false;
}
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... |