361. Attendance Shortfall
EasyMath
A student attended a of t classes. Print how many more consecutive classes they must attend to reach at least 75% attendance (0 if already there).
Input format
A single line: a t
Output format
The number of classes.
Example 1
Input
30 50
Output
30
Example 2
Input
75 100
Output
0
Constraints
0 ≤ a ≤ t ≤ 10⁹
Read input from standard input and print the answer to standard output. Your code is judged against 4 test cases, most of them hidden.
Loading the MyLoginn IDE…