# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1219452 | sleepntsheep | Portal (BOI24_portal) | C11 | 23 ms | 1096 KiB |
#include <stdio.h>
#include <stdlib.h>
#define N 200000
int n, x[N], y[N];
int main() {
scanf("%d", &n);
if (n == 1) {
puts("-1");
return 0;
}
for (int i = 0; i < n; ++i)
scanf("%d%d", x + i, y + i);
printf("%d\n", abs(x[0] - x[1]) + abs(y[0] - y[1]));
return 0;
}
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... |