GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Wednesday, 18 May 2022

[Solution] Chess Ratings CodeChef Solution | CodeChef Problem Solution 2022

Alice has recently started playing Chess. Her current rating is X. She noticed that when she wins a game, her rating increases by 8 points.

Can you help Alice in finding out the minimum number of games she needs to win in order to make

Solution Click Below:-  CLICK HERE

 her rating greater than or equal to Y?

Input Format

  • The first line of input will contain an integer T — the number of test cases. The description of T test cases follows.
  • The first line of each test case contains two integers X and Y, as described in the problem statement.

Output Format

For each test case, output the minimum number of games that Alice needs to win in order to make her rating greater than or equal to Y.

Constraints

  • 1T104
  • 1XY104

No comments:

Post a Comment