#P1452. 【模板】旋转卡壳 / [USACO03FALL] Beauty Contest G
【模板】旋转卡壳 / [USACO03FALL] Beauty Contest G
Description
Given points on the plane, find the diameter of the convex hull.
Input Format
The first line contains a positive integer . The next lines each contain two integers , representing the coordinates of a point. All point coordinates are pairwise distinct.
Output Format
Output one line with a single integer, the square of the answer.
4
0 0
0 1
1 1
1 0
2
Hint
Constraints
For of the testdata, , .
: Four new Hack testdata have been added.
Translated by ChatGPT 5
京公网安备 11011102002149号