문제
Problem 1: Crazy Fences [Brian Dean, 2012]
After visiting a modern art museum, Farmer John decides to re-design his farm by moving all of the N
FJ has C cows
PROBLEM NAME: crazy
입력
* Line 1: Two space-separated integers N and C.
* Lines
* Lines 2+N..1+N+C: Each line contains two integers x and y describing the location of a cow. All coordinates are integers in the range
출력
* Line 1: The number of cows in the largest community.
예제1
10 4
0 0 10 0
10 0 10 10
0 0 0 10
10 10 0 10
8 8 9 8
9 8 8 9
8 9 8 8
2 7 3 2
3 2 7 5
7 5 2 7
15 3
1 4
4 5
7 1
2
INPUT DETAILS:
There are 10 fences and 4 cows. The fences form a square containing two triangles.
OUTPUT DETAILS: Cows #2 and #4 belong to the same community. Cows #1 and #3 are each members of a community of size 1.