Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
76252 赵乘浩 猜数字 Python3 Accepted 133 MS 3780 KB 314 2024-06-02 09:29:48

Tests(1/1):


Code:

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')