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:
[c]0 0
0 6
6 0
Output:
2.00000 2.00000Input:
Output:
-1 -1
1 2
2 -2Output:
0.66667 -0.33333 Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.