Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128121 江屹山 猜数字 Python3 Accepted 183 MS 3768 KB 274 2025-08-02 14:25:15

Tests(1/1):


Code:

e=int(input()) for i in range(e): a,b,c=input().split() a = int(a) b = int(b) c = int(c) for x in range(1000,9999+1): if x%a==0 and (x+1)%b==0 and (x+2)%c==0: print(x) break else: print('Impossible')