#9346. [USACO12FEB] Symmetry G
[USACO12FEB] Symmetry G
[USACO12FEB] Symmetry G
题目描述
After taking a modern art class, Farmer John has become interested in finding geometric patterns in everything around his farm. He carefully plots the locations of his N cows (2 <= NPlease help FJ answer this most pressing geometric question.
输入格式
\* Line 1: The single integer N.* Lines 2..1+N: Line i+1 contains two space-separated integers representing the x and y coordinates of the ith cow (-10,000 <= x,y <= 10,000).
输出格式
\* Line 1: The number of different lines of symmetry of the point set.4
0 0
0 1
1 0
1 1
4
提示
The 4 cows form the corners of a square.There are 4 lines of symmetry -- one vertical, one horizontal, and two diagonal. 标签: P3046|2012|USACO|离散化|枚举