[Solution] Determine the Score CodeChef Solution | CodeChef Problem Solution 2022
Chef appeared for a placement test.
There is a problem worth points. Chef finds out that the problem has exactly test cases. It is known that each test case is worth the same number of points.
Chef passes test cases among them. Determine the score Chef will get.
Solution Click Below:- CLICK HERE
NOTE: See sample explanation for more clarity.
Input Format
- First line will contain , number of test cases. Then the test cases follow.
- Each test case contains of a single line of input, two integers and , the total points for the
- problem and the number of test cases which pass for Chef's solution.
Output Format
For each test case, output the points scored by Chef.
No comments:
Post a Comment