Pro.ID10053 TitleTriangle Title链接http://10.20.2.8/oj/exercise/problem?problem_id=10053 AC20 Submit86 Ratio23.26% 时间&空间限制描述It is a simple task, for N points on the 2D plane, you are supposed to find whether there are three points which could form a isosceles triangle. 输入There are several test cases. For each case, the first line is an integer N ( 3 ≤ N ≤ 500 ) indicating the number of points. N lines follow, each line contains two doubles ( not exceed 1000.0 ), indicating the coordinates of the points. 输出Description It is a simple task, for N points on the 2D plane, you are supposed to find whether there are three points which could form a isosceles triangle. Input There are several test cases. For each case, the first line is an integer N ( 3 ≤ N ≤ 500 ) indicating the number of points. N lines follow, each line contains two doubles ( not exceed 1000.0 ), indicating the coordinates of the points. Output For each case, if there exists a solution which could form a isosceles triangle, output "YES", else output "NO". Sample Input 3 Sample Output YES 样例输入3 样例输出YES 提示作者 |