# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
143642 | JustInCase | Arranging Shoes (IOI19_shoes) | C++17 | 867 ms | 150952 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>
#ifndef LOCAL
#include "shoes.h"
#define int32_t int
#define int64_t long long
#endif
const int32_t MAX_N = 2e5;
struct SegmentTree {
int32_t treeSize;
int32_t data[4 * MAX_N + 5], lazy[4 * MAX_N + 5];
void init(int32_t _treeSize) {
treeSize = _treeSize;
}
void push_lazy(int32_t node, int32_t low, int32_t high) {
if(lazy[node] == 0) {
return;
}
data[node] += lazy[node];
if(low != high) {
lazy[2 * node] += lazy[node];
lazy[2 * node + 1] += lazy[node];
}
lazy[node] = 0;
}
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |