# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
887299 | alex_2008 | 원숭이와 사과 나무 (IZhO12_apple) | C++14 | 345 ms | 71764 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.
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cmath>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <fstream>
#include <bitset>
typedef long long ll;
using namespace std;
const int N = 1e7 + 10;
int sz = 1;
int lazy[N];
int sm[N];
int l[N];
int r[N];
void update(int v, int tl, int tr, int ql, int qr) {
if (tl > qr || tr < ql) {
return;
}
if (tl >= ql && tr <= qr) {
sm[v] = (tr - tl + 1);
lazy[v] = 1;
return;
}
if (!l[v]) l[v] = ++sz;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |