# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
485628 | tibinyte | Cambridge (info1cup18_cambridge) | C++14 | 0 ms | 204 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define mod 1000000007
#define inf 1e17
using namespace std;
struct aint {
vector<long long> a;
vector<long long> lazy;
void prop(long long node, long long left, long long right) {
a[node] += lazy[node];
if (left != right) {
lazy[2 * node] += lazy[node];
lazy[2 * node + 1] += lazy[2 * node + 1], lazy[node];
}
lazy[node] = 0;
}
void build(vector<long long>& b, long long node, long long left, long long right) {
if ((long long)a.size() == 0) {
long long n = b.size() - 1;
a = vector<long long>(4 * n);
lazy = vector<long long>(4 * n);
}
if (left == right) {
a[node] = b[left];
}
else {
long long mid = (left + right) / 2;
build(b, 2 * node, left, mid);
build(b, 2 * node + 1, mid + 1, right);
a[node] = min(a[2 * node], a[2 * node + 1]);
}
# | 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... |