We Are Discuss About CODECHEF SOLUTION
Mana Points Codechef Solution
Mana Points Codechef Solution
Problem
Chef is playing a mobile game. In the game, Chef’s character Chefario can perform special attacks. However, one special attack costs � mana points to Chefario.
If Chefario currently has � mana points, determine the maximum number of special attacks he can perform.
Input Format
- The first line contains a single integer � — the number of test cases. Then the test cases follow.
- The first and only line of each test case contains two space-separated integers � and � — the cost of one special attack and the number of mana points Chefario has initially.
Output Format
For each test case, output the maximum number of special attacks Chefario can perform.
Constraints
- 1≤�≤105
- 1≤�≤100
- 1≤�≤1000
Sample 1:
3 10 30 6 41 50 2
3 6 0
Explanation:
Test case 1: Chefario can perform a maximum of 3 special attacks which will cost him 30 mana points.
Test case 2: Chefario can perform a maximum of 6 special attacks which will cost him 36 mana points. Note that Chefario can not perform 7 special attacks as these will cost him 42 mana points while he has only 41 mana points.
Test case 3: Chefario will not be able to perform any special attacks in this case.
SOLUTION
Here Discuss About Mana Points Codechef Solution
SOLUTION
Mana Points Codechef Solution
SOLUTION
Yhaa You have done it but next? if YOU Want to Get Others Please Visit Here ScishowEngineer  Then Follow US HERE and Join Telegram.
If You Want To Learn Something New Then Visit Our Official Channel YOUTUBE