#K34787. Game Session Score Calculation
Game Session Score Calculation
Game Session Score Calculation
You are given a game session where a player earns points based on the number of achievements unlocked and the duration of the session in minutes. The score is computed using the following formula: [ S = 10 \times a + 5 \times m + B ] where (a) is the number of achievements, (m) is the number of minutes, and the bonus (B) is defined as: [ B = \begin{cases}100, & \text{if } m > 120 \ 0, & \text{otherwise}\end{cases} ]
Your task is to write a program that reads two integers from standard input and prints the calculated score to standard output.
inputFormat
The input consists of two space-separated integers: (a) (the number of achievements) and (m) (the duration in minutes).
outputFormat
Output a single integer representing the total score based on the calculation described above.## sample
3 110
580