GUPTA MECHANICAL

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

Friday, 20 May 2022

Total Prize Money CodeChef Solution | CodeChef Problem Solution 2022

In a coding contest, there are prizes for the top rankers. The prize scheme is as follows:

  • Top 10 participants receive rupees X each.
  • Participants with rank 11 to 100 (both inclusive) receive rupees Y each.

Find the total prize money over all the contestants.

Solution Click Below:-  CLICK HERE

Input Format

  • First line will contain T, number of test cases. Then the test cases follow.
  • Each test case contains of a single line of input, two integers X and Y - the prize for top 10 rankers and the prize for ranks 11 to 100 respectively.

Output Format

For each test case, output the total prize money over all the contestants.

Constraints

  • 1T1000
  • 1YX1000

No comments:

Post a Comment