Help Watson - Editorial

PROBLEM LINK:

Practice
Encoding February 2020 Prelims

Author: arnie8991
Tester: nutella
Editorialist: arnie8991

DIFFICULTY:

CAKEWALK

PREREQUISITES:

MATHS

EXPLANATION:

This problem asks us to find the number of chocolates that will be left out. In order to find that we do a MOD operation which gives us the remainder of the chocolates

SOLUTIONS:

[details=“Setter’s Solution”]

test = int(input())

for _ in range(test):
     a,b = map(int, input.split()) 
     print(a%b)

[details=“Tester’s Solution”]