~/algor $ cat contests/round-7/AW
AW. Law of cosines
Problem AW
ICPC rules
1000 ms
64 MB
Two sides of a triangle , and the angle between them (in degrees) are given. Find the third side and the area of the triangle:
Use .
Input
One line with three positive integers: , and .
Output
One line with two numbers: and , each with exactly 2 digits after the decimal point (for example, 5.00).
Note
Examples
Input #1
3 4 90
Output #1
5.00 6.00
Input #2
5 5 60
Output #2
5.00 10.83