Green spot
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.
Specifications
Input
The first line contains the coordinates of the first spot: x11, y11, x12, y12, x13, y13, and the second line contains the same vertex coordinates of the second spot x21, y21, x22, y22, x23, y23. It is know that -100 ≤ xi, yi ≤ 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.
Problem information
Time Limit: 1 secondsMemory Limit: 64 MB
Balls for the passed test: 6.66667
Complexity: 31% 34/49
Classes: Geometry
Example
Example input2 2 2 6 8 4 5 4 11 6 11 2 |
Example output4 1.50 |
| ← Command of the Mayor | Problems | Competitors’ quantity of olimpia → |
