문제
Problem 1: Marathon [Nick Wu, 2014]
Unhappy with the poor health of his cows, Farmer John enrolls them in an assortment of different physical fitness activities. His prize cow Bessie is enrolled in a running class, where she is eventually expected to run a marathon through the downtown area of the city near Farmer John's farm!
The marathon course consists of N checkpoints
Please help Bessie find the minimum distance that she has to run if she can skip up to one checkpoint.
Note that since the course is set in a downtown area with a grid of streets, the distance between two checkpoints at locations
입력
The first line gives the value of N.
The next N lines each contain two space-separated integers, x and y, representing a checkpoint
출력
Output the minimum distance that Bessie can run by skipping up to one checkpoint. Don't forget to end your output with a newline. In the sample case shown here, skipping the checkpoint at
예제
4
0 0
8 3
11 -1
10 0
14