Startup and Tech
Sunday, 12 July 2020
Codeforces 1328A - Divisibility Problem Solution In Python
Program
t = int(input()) for i in range(t): def find(a, b): x = a%b ans = b-x print(ans) a, b = [int(j) for j in input().split()] if (a % b == 0): print(0) elif(b>a): print(b-a) else: find(a,b)
Output
5 10 4 2 13 9 5 100 13 4 123 456 333 92 46 0
Codeforces-71A (Way Too Long Words)-
https://www.techrcoding.com/2020/06/71A.html
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment