Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
76256 | 王英泽 | 猜数字 | Python3 | Accepted | 124 MS | 3772 KB | 309 | 2024-06-02 09:32:04 |
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')