# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
13650 | dohyun0324 | Fortune Telling 2 (JOI14_fortune_telling2) | C++98 | 369 ms | 30772 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<stdio.h>
#include<algorithm>
using namespace std;
int p,cnt,w,t,n,k,a[200010],b[200010],c[200010],tree[2000010],tree2[2000010],sw[200010],a2[200010],b2[200010];
long long sum;
struct data
{
int x,y;
bool operator<(const data&r)const
{
return x<r.x;
}
}arr[600010];
data pos[600010];
void update(int x,int p)
{
x+=t-1; tree[x]=p; x/=2;
while(x){
tree[x]=max(tree[x*2],tree[x*2+1]);
x/=2;
}
}
void update2(int x)
{
while(x<=t){
tree2[x]++;
x+=x&(-x);
}
}
int query(int x,int y,int k,int s,int e)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |