Run ID:76018
提交时间:2024-06-01 14:30:06
n=int(input()) for i in range(n): a,b,c=map(int,input().split()) x=0 flag=False for i in range(1000,10000): if i%a==0 and (i+1)%b==0 and (i+2)%c==0: print(i) break else: print("Impossible")