PKU 2187 Beauty Contest 凸包+旋转卡壳
来源:互联网 发布:西安网络送蛋糕 编辑:程序博客网 时间:2024/06/04 20:01
Beauty Contest
Description
Bessie, Farmer John's prize cow, has just won first placein a bovine beauty contest, earning the title 'Miss Cow World'. As a result,Bessie will make a tour of N (2 <= N <= 50,000) farms around the world inorder to spread goodwill between farmers and their cows. For simplicity, theworld will be represented as a two-dimensional plane, where each farm islocated at a pair of integer coordinates (x,y), each having a value in therange -10,000 ... 10,000. No two farms share the same pair of coordinates.
Even though Bessie travels directly in a straight line between pairs of farms,the distance between some farms can be quite large, so she wants to bring asuitcase full of hay with her so she has enough food to eat on each leg of herjourney. Since Bessie refills her suitcase at every farm she visits, she wantsto determine the maximum possible distance she might need to travel so sheknows the size of suitcase she must bring.Help Bessie by computing the maximumdistance among all pairs of farms.
Input
* Line 1: A singleinteger, N
* Lines 2..N+1: Two space-separated integers x and y specifying coordinate ofeach farm
Output
* Line 1: A singleinteger that is the squared distance between the pair of farms that arefarthest apart from each other.
Sample Input
4
0 0
0 1
1 1
1 0
Sample Output
2
旋转卡壳+凸包
- PKU 2187 Beauty Contest 凸包+旋转卡壳
- pku 2187 Beauty Contest(凸包+卡壳旋转)
- POJ2187 Beauty Contest 凸包+旋转卡壳
- poj2187 Beauty Contest 凸包+旋转卡壳
- 【POJ2187】Beauty Contest-凸包+旋转卡壳
- poj 2187 Beauty Contest(凸包+旋转卡壳)
- POJ 2187 Beauty Contest(凸包+旋转卡壳)
- POJ 2187 Beauty Contest [凸包,旋转卡壳]
- POJ 2187 Beauty Contest 构造凸包 + 旋转卡壳
- POJ 2187 Beauty Contest 构造凸包 + 旋转卡壳
- poj 2187 Beauty Contest 题解(凸包模板+旋转卡壳)
- Poj 2187 Beauty Contest (凸包+旋转卡壳)
- POJ 2187 Beauty Contest 凸包+旋转卡壳
- POJ 2187 Beauty Contest(凸包 + 旋转卡壳)
- poj 2187 Beauty Contest 经典题目:凸包+旋转卡壳
- poj 2187 Beauty Contest(二维凸包旋转卡壳)
- POJ 2187:Beauty Contest (凸包+旋转卡壳)
- POJ 2187 Beauty Contest(凸包,旋转卡壳)
- 错误:expected unqualified-id before ‘using’
- 语音增强效果的测试方法
- java学习之增强for循环
- 数组
- JBoss Seam 3.0.0.Beta2 发布
- PKU 2187 Beauty Contest 凸包+旋转卡壳
- 世界的GIS都在将在未来三年增长迅猛
- 字符串处理函数
- comic
- 罗纳尔多~~~~~~
- windbg双机调试的配置方法(1394版)
- 模拟IE浏览器事件
- Oracle 控制文件(CONTROLFILE)
- js setTimeout 参数传递