It's been a year of playing osu!, and is frustrated with the pp (performance point) system, since he can't get any new top scores. He wants to create his own score system, and wants your help to do so. To recall, osu! is an anime-themed rhythm game where circles appear sequentially on-screen, and players are required to click on them at just the right time to get points. If they hit the notes early or late, they get a reduced number of points, and if their timing is really off, they will miss and get no points. For the purpose of this question, refer to the following list of timings mapped to scores:
- Between 0ms and 50ms (absolute value, inclusive) of perfect timing: Excellent
- Between 51ms and 100ms: Great
- Between 101ms and 150ms: Good
- Between 151ms and 200ms: Bad
- Greater than 200ms: Miss
For example, hitting a note at 32ms (late) would be Excellent, and hitting a note at -128ms (early) would be Good.
Given the number of notes in a song,
's previous score on the song, as well as the timings of his individual clicks during that playthrough, determine how much his score would increase by according to this new scoring system.Input Specification
The first line of input will contain two numbers separated by a space: the integer
Output Specification
Output a single decimal number rounded to one decimal place, representing how much
's score would increase by.Sample Input
5 3.0
35
-52
-140
-201
21
Sample Output
2.5
Comments