Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
86600 | 丁俊杰 | 猜数字 | Python3 | Accepted | 175 MS | 3760 KB | 398 | 2024-07-26 22:52:16 |
n=int(input()) results=[] for i in range(n): a,b,c=map(int,input().split()) x=1000 found=False while x<=9999: if x%a==0 and (x+1)%b==0 and (x+2)%c==0: found=True break x+=1 if found==True: results.append(x) else: results.append("Impossible") for result in results: print(result)