tests, knowing that test
will tilt him by
degrees (naturally, tilt is mathematically represented in degrees).
Remembering the wise words of his math teacher, is equal to no (zero) tilt.
would like to know just how disappointed he will feel after writing all his tests. To this end, he has asked you to determine his final tilt.
Input Specification
The first line of input will contain the integer
, the number of math tests will write.
The next lines of input will each contain the decimal tilt of a test, with line
representing
. Each decimal will be written with exactly six digits after the decimal point.
Output Specification
A single decimal value in the range ; 's tilt after writing all his tests. Answers will be considered correct if they are within an absolute or relative error less than or equal to
.
Sample Input
2
0.000000
361.000000
Sample Output
1.000000
Explanation
. This is equivalent to a tilt of
.
Comments
Can someone take a look at my code I don't really understand why it isn't working I'm guessing it has to do on the problems output specification but I am not sure
The input specification for this problem was underspecified, so the statement has been updated to clarify the precision with which these decimals are expressed. The checker for this problem remains unmodified, in spite of the mismatch between the input precision of
and the output precision of
.
One test case has been added and most unlocked solutions have been rejudged. After the migration to Java 17 completes, all remaining Java submissions will be rejudged.
Using Turing tilts me by 399 gradians
I'm tilted 0 degrees.
Reading your solution tilts me so hard I capsized.
(As does this math format)