ac-library-rs icon indicating copy to clipboard operation
ac-library-rs copied to clipboard

ac-library-rs is a rust port of AtCoder Library (ACL).

Results 47 ac-library-rs issues
Sort by recently updated
recently updated
newest added

https://github.com/rust-lang-ja/ac-library-rs/blob/d2b35ac542160c963d49d180194e77fc6a03fd7d/src/modint.rs#L676 https://github.com/rust-lang-ja/ac-library-rs/blob/d2b35ac542160c963d49d180194e77fc6a03fd7d/src/modint.rs#L1046 https://github.com/rust-lang-ja/ac-library-rs/blob/d2b35ac542160c963d49d180194e77fc6a03fd7d/src/modint.rs#L1048 The identity of multiplication should be `Self::new(1)`(not `raw` but `new`), because of following (corner) cases: ```rs use ac_library_rs::ModInt; ModInt::set_modulus(1); // !! let x: ModInt = std::iter::empty::().product(); assert_eq!(x.val(),...

bug

Resolves #143 This draft PR implements the `Debug` trait for `LazySegtree`. As mentioned in the issue, the `Debug` implementation uses the `debug_struct` function to display the relevant fields. I would...

Resolves #145 This draft PR implements the `Debug` trait for `FenwickTree`. The previous draft PR with the same content was unintentionally closed, so I’ve created a new branch to both...

Implement the `Clone` and `Debug` traits for `FenwickTree`. For the `Clone` trait, it should be enough to add a `Clone` trait bound to `T` and write an explicit `impl`. For...

Implement the `Clone` trait for `LazySegtree`. Since both `MapMonoid::F` and `::S` have the `Clone` constraint, it can be derived. Additionally, `LazySegtree` already has a `Debug` implementation, but there is a...

Implement the `Clone` and `Debug` traits for `Segtree`. Since `M::S` has the `Clone` constraint, the `Clone` trait can be derived. For the `Debug` trait, I propose adding `use std::fmt::{Debug, Error,...

It would be convenient if we could `u32 + Modint`, and so on.