Codechef•May 03, 2025
Bath in Winters
Hazrat Ali
Codechef
One person requires exactly 22 buckets of water to take a bath. Find the maximum number of people that can take bath using water from one completely filled geyser..
Input Format
- First line will contain TT, number of test cases. Then the test cases follow.
- Each test case contains a single line of input, two integers X,YX,Y.
Output Format
For each test case, output the maximum number of people that can take bath.
Constraints
- 1≤T≤1000
- 1≤X,Y≤100
Sample 1:
Input
4 10 6 25 1 100 10 30 40
Output
0 12 5 0
Solition
for _ in range(int(input())):
X,Y = map(int, input().split(' '))
print(int(X/(Y*2)))