# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
169404 | RafaelSus | Gift (IZhO18_nicegift) | C++14 | 1232 ms | 96656 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>
using namespace std;
const int N = 1e6 + 5;
typedef long long ll;
const ll inf=1e18+18ll;
#define pb push_back
ll n,k;
ll a[N];
/*
void build(int v,int tl,int tr){
if(tl==tr)t[v]=a[tl],return;
int tm=(tl+tr)/2;
build(v+v,tl,tm);
build(v+v+1,tm+1,tr);
t[v]=min(t[v+v],t[v+v+1]);
}
void pushdown(int v){
if(lazy[v]==0)return;
t[v+v]-=lazy[v];
t[v+v+1]-=lazy[v];
lazy[v+v]+=lazy[v];
lazy[v+v+1]+=lazy[v];
lazy[v]=0;
}
void update(int v,int tl,int tr,int l,int r,ll d){
if(l>r)return;
Compilation message (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... |