# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
419775 | kshitij_sodani | Crossing (JOI21_crossing) | C++14 | 519 ms | 31896 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.
//#pragma GCC optimize("Ofast,unroll-loops")
#include <bits/stdc++.h>
using namespace std;
typedef long long llo;
#define mp make_pair
#define pb push_back
#define a first
#define b second
#define endl '\n'
llo aa[200001];
llo bb[200001];
llo cc[200001];
llo dd[200001];
llo ac=2329923;
const llo mod=1e9+7;
llo bc=54959459;
const llo mod2=1e9+7;
llo pre[200001];
llo pre2[200001];
pair<llo,llo> tree[200001*4];
pair<llo,llo> tree2[200001*4];
llo lazy[4*200001];
void push(llo no,llo l,llo r){
if(lazy[no]>0){
// cout<<l<<".."<<r<<".."<<lazy[no]<<".."<<tree2[no].a<<",,"<<tree2[no].b<<endl;
tree[no].a=(tree2[no].a*lazy[no])%mod;
tree[no].b=(tree2[no].b*lazy[no])%mod2;
//cout<<tree[no].a<<"::"<<tree[no].b<<endl;
if(l<r){
# | 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... |