add 中国剩余定理.
This commit is contained in:
parent
be353533a7
commit
2aa12fbb6e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user