# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
288181 | Alexa2001 | Worst Reporter 2 (JOI16_worst_reporter2) | C++17 | 285 ms | 22636 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>
using namespace std;
const int Nmax = 2e5 + 5;
vector<int> last[Nmax];
int n;
int score1[Nmax], score2[Nmax], id1[Nmax], id2[Nmax];
#define left_son (node<<1)
#define right_son ((node<<1)|1)
#define mid ((st+dr)>>1)
class SegTree
{
int a[Nmax<<2], lazy[Nmax<<2];
void propag(int node)
{
if(!lazy[node]) return;
lazy[left_son] += lazy[node];
lazy[right_son] += lazy[node];
a[left_son] += lazy[node];
a[right_son] += lazy[node];
lazy[node] = 0;
}
public:
void update(int node, int st, int dr, int L, int R, int add)
# | 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... |