# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
12766 | dohyun0324 | 전선 연결하기 (GA9_wire) | C++98 | 916 ms | 36248 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<string.h>
#include<stdlib.h>
int max(int x,int y){
if(x>y) return x;
return y;
}
int min(int x,int y){
if(x>y) return y;
return x;
}
int n;
int s1,e1,p,t=1,a[600010],ch[600010],top,q[300010],s[300010],e[300010],dap[300010],f,r,treeb[2200010],treef[2200010],tree[2200010];
void update(int x,int gap)
{
int s=x+t-1;
tree[s]=gap;
s/=2;
while(s>0){
tree[s]=max(tree[s*2],tree[s*2+1]);
s/=2;
}
}
void updatef(int x,int gap)
{
int s=x+t-1;
treef[s]=gap;
s/=2;
while(s>0){
treef[s]=min(treef[s*2],treef[s*2+1]);
# | 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... |