question - Divisibility Problem (1328A)
这是我的准则
t = int(input())
lst = []
for i in range(0,t):
nums = list(map(int,input().split()))
result = (nums[0] % nums[-1])
lst.append(result)
for i in range(0,len(lst)):
print(lst[i])
question - Divisibility Problem (1328A)
这是我的准则
t = int(input())
lst = []
for i in range(0,t):
nums = list(map(int,input().split()))
result = (nums[0] % nums[-1])
lst.append(result)
for i in range(0,len(lst)):
print(lst[i])
2条答案
按热度按时间exdqitrt1#
你的逻辑是有缺陷的,你正在寻找迭代的次数,增加
b
会导致数字之间的可分性,问题是要求你在每一步增加a
。wswtfjt72#