Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73884 冯潇阳 猜数字 Python3 Accepted 126 MS 3772 KB 280 2024-05-19 20:04:50

Tests(1/1):


Code:

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 break if flag==0: print("Impossible")