# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
111419 | vex | Pinball (JOI14_pinball) | C++14 | 476 ms | 15088 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.
/**11:37**/
#include<bits/stdc++.h>
#define maxn 100010
#define INF 100000000000000000
using namespace std;
int m,n;
int a[maxn],b[maxn],c[maxn],d[maxn];
map<int,bool> bio;
int len;
vector<int>poz;
long long dis[4*maxn][2];
void build(int v,int l,int r,int type)
{
if(l==r)
{
if((type==0 && l==0) || (type==1 && l==len-1))dis[v][type]=0;
else dis[v][type]=INF;
return;
}
int mid=(l+r)/2;
build(2*v,l,mid,type);
build(2*v+1,mid+1,r,type);
dis[v][type]=min(dis[2*v][type],dis[2*v+1][type]);
}
# | 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... |