add 中国剩余定理.

This commit is contained in:
Licsber 2022-04-10 05:51:10 +08:00
parent be353533a7
commit 2aa12fbb6e

View File

@ -70,8 +70,8 @@ def lcm(a, b):
ans = 2022040920220409
check(ans)
ans = 1
product = 1
# 中国剩余定理
ans = product = 1
for num, mod in nums:
while ans % num != mod:
ans += product