Green spot
Medium
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Two triangular projectors form two spots on a wall, one of blue, and second of yellow colour. Find the area of a green spot that is obtained with superposition of two spots and the form (number of vertices) of a green spot.
Input
The first line contains the coordinates of the first spot: x_11, y_11, x_12, y_12, x_13, y_13, and the second line contains the same vertex coordinates of the second spot x_21, y_21, x_22, y_22, x_23, y_23. It is know that -100 ≤ x_i, y_i ≤ 100.
Output
Print 2 numbers, separated with a blank, in one line: the number of vertices in a green spot and its area with two digits after the decimal point.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 8%