Cookie Lover
Time limit1sMemory limit256 MB
Given N cookies and C eaten per day, compute how many days pass until none remain.
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Cheolsu likes cookies more than anything else. Wherever there are cookies, Cheolsu is there too. Every day he eats of the cookies he holds. If fewer than cookies are left, he eats all of them. Given that Cheolsu holds cookies, find how many days he eats cookies for.
Input
The first line contains the number of test cases . Each of the next lines contains one test case: the number of cookies that Cheolsu holds and the number of cookies he eats each day, separated by a space.
Output
For each test case, print on its own line how many days Cheolsu eats cookies for.