#37158: python 紀錄


BensonDC (python戰士)

學校 : 不指定學校
編號 : 240921
來源 : [1.175.217.87]
最後登入時間 :
2024-03-27 12:33:26
f070. 1. 韓信點兵 (HanXin) -- 2020年5月TOI練習賽新手組 | From: [36.238.105.93] | 發表日期 : 2023-08-23 14:49

L=[]
for i in range(3):
    L.append([int(x) for x in input().split()])
x=1
flag=False
while True:
    if x%L[0][0]==L[0][1] and x%L[1][0]==L[1][1] and x%L[2][0]==L[2][1]:
        break
    x+=1
print(x)

 
ZeroJudge Forum