# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1105648 | alexdd | Flooding Wall (BOI24_wall) | C++17 | 5066 ms | 387144 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;
#define int long long
const int MOD = 1e9+7;
int n,cate;
int a[500005],b[500005];
int prefmax[500005],suffmax[500005];
int p2[1000005],inv2;
int put(int x, int exp)
{
if(exp==0)
return 1;
if(exp%2==0)
return put(x*x%MOD,exp/2);
else
return put(x*x%MOD,exp/2)*x%MOD;
}
map<int,int> mp,nrm;
int inv[2000005];
int aint[8000005],lazy[8000005];
void build(int nod, int st, int dr)
{
lazy[nod]=1;
if(st==dr)
{
aint[nod] = inv[dr]-inv[st-1];
return;
# | 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... |