Center of Masses
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Find the center of masses of a convex polygon, carved from wood.
Input
Consists of multiple test cases. The first line of each test case contains the number n (n ≤ 100) of points in the polygon. It is followed with n different pairs of integers (in no particular order), denoting the x and y coordinates of each point. The last polygon contains n < 3 points and should not be processed.
Output
For each polygon, print in a single line the coordinates x and y of its center of masses with three decimal digits.
Examples
Input #1
Answer #1
Submissions 528
Acceptance rate 54%