# Mana Points Codechef Solution

### We Are Discuss About CODECHEF SOLUTION

Mana Points Codechef Solution

## Mana Points Codechef Solution

Answers will be Uploaded Shortly and it will be Notified on Telegram, SoÂ JOIN NOW

## 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:

Input

Output

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.

Answers will be Uploaded Shortly and it will be Notified on Telegram, SoÂ JOIN NOW

## 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