Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
75821 蒙恒羽 猜数字 Python3 Accepted 140 MS 3768 KB 308 2024-05-29 20:28:40

Tests(1/1):


Code:

t = int(input()) for j in range(t): x = list(int(i) for i in input().split()) s = 0 for _ in range(1000, 10000): if _ % x[0] == 0 and (_ + 1) % x[1] == 0 and (_ + 2) % x[2] == 0: print(_) s = 1 break if s == 0: print('Impossible')