Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
76019 | 胡海峰老师 | 猜数字 | Python3 | Accepted | 138 MS | 3780 KB | 306 | 2024-06-01 14:31:08 |
n = int(input()) for t in range(n): a,b,c = input().split() #有解,Impossbile a,b,c = int(a),int(b),int(c) for x in range(1000,9999+1): #1000<=x<=9999 if x%a==0 and (x+1)%b==0 and (x+2)%c==0: print(x) break else: print('Impossible')