Run ID:75820
提交时间:2024-05-29 20:25:55
t = int(input()) for j in range(t): x = list(int(i) for i in input().split()) for _ in range(1000, 10000): if _ % x[0] == 0 and (_ + 1) % x[1] == 0 and (_ + 2) % x[2] == 0: print(_) break if _ == 9999: print('Impossible')