# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
67499 | aome | Bubble Sort 2 (JOI18_bubblesort2) | C++17 | 2902 ms | 77016 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 "bubblesort2.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 500005;
const int INF = 0x3f3f3f;
struct SegmentTree {
int Tmax[N << 3];
int Tcnt[N << 3];
int lazy[N << 3];
SegmentTree() {
memset(Tmax, -INF, sizeof Tmax);
}
void push(int i, int l, int r) {
Tmax[i] += lazy[i];
if (l != r) {
lazy[i << 1] += lazy[i], lazy[i << 1 | 1] += lazy[i];
}
lazy[i] = 0;
}
#define mid ((l + r) >> 1)
void updRange(int i, int l, int r, int L, int R, int x) {
push(i, l, r);
# | 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... |