Problem P
Painting the roof

You are painting your roof. You have a
You have a cool app on your phone that allows you to measure
the roof’s angle in degrees, denoted as
Hint: the math module in Python contains commonly used trigonometric functions.
Input
Input consists of one line with one integer
Output
Output consists of one line with one floating point number, the height of the second piece, rounded to 1 decimal place.
Sample Input 1 | Sample Output 1 |
---|---|
0 |
0.0 |
Sample Input 2 | Sample Output 2 |
---|---|
14 |
12.5 |
Sample Input 3 | Sample Output 3 |
---|---|
45 |
50.0 |