Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74618 屠佳毅 猜数字 Python3 Accepted 95 MS 3784 KB 278 2024-05-25 16:37:47

Tests(1/1):


Code:

def find_x(a, b, c): for i in range(1000, 10000): if i % a == 0 and (i + 1) % b == 0 and (i + 2) % c == 0: return i return "Impossible" c = int(input()) for _ in range(c): a, b, c = map(int, input().split()) print(find_x(a, b, c))