rust-lang-ja / ac-library-rs

ac-library-rs is a rust port of AtCoder Library (ACL).
Creative Commons Zero v1.0 Universal
225 stars 27 forks source link

In the crt, the constraint should be "1 <= m[i]", but the assert is "1 < m[i]" #59

Closed manukeno closed 4 years ago

manukeno commented 4 years ago

ac-library-rs https://github.com/rust-lang-ja/ac-library-rs/blob/ee0d3df1aa0e7d3c65daaa7cc9d7fb13a46928f2/src/math.rs#L36

original ACL https://atcoder.github.io/ac-library/document_en/math.html https://github.com/atcoder/ac-library/blob/2a8bc7147f23a8783d7c0603330773117fde710e/atcoder/math.hpp#L40

manta1130 commented 4 years ago

@manukeno Thank you for pointing it out.