Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73896 娄瀚兮 猜数字 Python3 Accepted 140 MS 3772 KB 256 2024-05-19 20:17:26

Tests(1/1):


Code:

T=int(input()) for _ in range(T): a,b,c = map (int,input().split()) for x in range (1000,10000): if x % a == 0 and (x + 1)% b == 0 and (x + 2)% c == 0: print(x) break else: print("Impossible")