# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1114523 | epicci23 | Sličnost (COI23_slicnost) | C++17 | 767 ms | 48612 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"
#define int long long
#define all(v) v.begin() , v.end()
#define sz(a) (int)a.size()
using namespace std;
const int N = 1e5 + 5;
struct LazySeg{
vector<array<int,2>> seg;
vector<int> Lazy;
LazySeg(int n){
seg.resize(4*n+5);
Lazy.assign(4*n+5,0);
build(1,1,n);
}
inline array<int,2> merge(array<int,2> a,array<int,2> b){
array<int,2> res;
res[0]=max(a[0],b[0]);
res[1]=0;
if(res[0]==a[0]) res[1]+=a[1];
if(res[0]==b[0]) res[1]+=b[1];
return res;
}
inline void push(int rt, int l, int r){
if(Lazy[rt] == 0) return;
int u = Lazy[rt];
# | 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... |