#0004BE

O-Center Of Mass

Image: triangle

InputThree points in plane: A, B, [] have coordinates (Ax, Ay), (Bx, By), (Cx, Cy). Every point in separate row of input. All numbers on input are integers (-2^31.. 2^31-1).

OutputIn one and only row of output, separated with white space, print coordinates of center of mass (Tx, Ty) for triangle ABC, on 5 decimal places.

Input:
[c]0 0
0 6
6 0

Output:
2.00000 2.00000

Input:
-1 -1
1 2
2 -2

Output:
0.66667 -0.33333

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.