Run ID:73882

提交时间:2024-05-19 19:59:02

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