[Solution] Playlist CodeChef Solution | CodeChef Problem Solution 2022
Chef's playlist contains songs named , and , each of duration exactly minutes. Chef generally plays these songs in loop, i.e,
Chef went on a train journey of minutes and played his playlist on loop for the whole journey. How many times did he listen to the song completely?
Input Format
- The first line of input will contain a single integer
Solution Click Below:- CLICK HERE
- , denoting the number of test cases. The description of the test cases follows.
- Each test case consists of a single line of input, containing two space-separated integers .
Output Format
For each test case, output on a new line the number of times Chef listens
to the song completely.
No comments:
Post a Comment