Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
85555 | 胡海峰老师 | 猜数字 | Python3 | Accepted | 182 MS | 3780 KB | 370 | 2024-07-18 10:03:28 |
n = int(input()) for t in range( n): a,b,c = input().split() #'44' '38', '49' a,b,c = int(a),int(b),int(c) x = 1000 found = False while x<=9999: if x%a==0 and (x+1)%b==0 and (x+2)%c==0: print(x) found = True break x +=1 if found == False: print("Impossible")