# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
522765 | nafis_shifat | Bigger segments (IZhO19_segments) | C++17 | 399 ms | 53644 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define ll long long
#define pii pair<ll,ll>
using namespace std;
const int mxn=1e6+5;
const int inf=1e9;
pii dp[mxn];
ll a[mxn], pre[mxn];
int n;
struct segtree {
pii lazy[4 * mxn] = {};
pii tree[4 * mxn] = {};
void propogate(int node) {
int left=node<<1;
int right=left|1;
tree[left] = max(tree[left], lazy[node]);
tree[right] = max(tree[right], lazy[node]);
lazy[left] = max(lazy[left], lazy[node]);
lazy[right] = max(lazy[right], lazy[node]);
lazy[node] = {0, 0};
}
void update(int node,int b,int e,int l,int r,pii v) {
if(e<l || b>r)return;
if(b>=l && e<=r) {
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |