# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
992343 | PVM_pvm | Road Construction (JOI21_road_construction) | C++17 | 892 ms | 15424 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 MAXN 250007
#define int long long
struct point
{
int x,y;
} arr[MAXN];
int n,k;
bool cmp1(point &a, point &b)
{
if (a.x!=b.x) return a.x<b.x;
return a.y<b.y;
}
bool cmp2(point &a, point &b)
{
return a.y<b.y;
}
int dist(int a, int b)
{
int xx=arr[a].x-arr[b].x;
if (xx<0) xx*=-1;
int yy=arr[a].y-arr[b].y;
if (yy<0) yy*=-1;
return xx+yy;
}
priority_queue<int> qu;
int BSIZE=1000;
void check()
{
Compilation message (stderr)
# | 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... |