Skip to content

Commit 4fd6c27

Browse files
committed
Rename the crate name to ac_library
1 parent 44b3805 commit 4fd6c27

14 files changed

+36
-33
lines changed

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ keywords = ["competitive"]
1010
categories = ["algorithms", "data-structures"]
1111
publish = false
1212

13+
[lib]
14+
name = "ac_library"
15+
1316
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1417

1518
[dependencies]

examples/library-checker-convolution-mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[macro_use]
22
extern crate proconio as _;
33

4-
use ac_library_rs::{convolution, modint::ModInt998244353 as Mint};
4+
use ac_library::{convolution, modint::ModInt998244353 as Mint};
55
use std::fmt;
66

77
fn main() {

examples/library-checker-static-range-sum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extern crate proconio as _;
33
#[macro_use]
44
extern crate proconio_derive as _;
55

6-
use ac_library_rs::fenwicktree::FenwickTree;
6+
use ac_library::fenwicktree::FenwickTree;
77

88
#[allow(clippy::needless_collect)]
99
#[fastout]

examples/library-checker-sum-of-floor-of-linear.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extern crate proconio as _;
33
#[macro_use]
44
extern crate proconio_derive as _;
55

6-
use ac_library_rs::math;
6+
use ac_library::math;
77

88
#[fastout]
99
fn main() {

examples/library-checker-unionfind.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[macro_use]
22
extern crate proconio as _;
33

4-
use ac_library_rs::dsu::Dsu;
4+
use ac_library::dsu::Dsu;
55

66
fn main() {
77
input! {

examples/practice2_d_maxflow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use ac_library_rs::MfGraph;
1+
use ac_library::MfGraph;
22
use std::io::Read;
33

44
#[allow(clippy::many_single_char_names)]

examples/practice2_j_segment_tree.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use ac_library_rs::{Max, Segtree};
1+
use ac_library::{Max, Segtree};
22
use std::io::Read;
33

44
fn main() {

examples/practice2_k_range_affine_range_sum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use ac_library_rs::{LazySegtree, MapMonoid, ModInt998244353, Monoid};
1+
use ac_library::{LazySegtree, MapMonoid, ModInt998244353, Monoid};
22
use std::io::Read;
33

44
type Mint = ModInt998244353;

examples/practice2_l_lazy_segment_tree.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![allow(clippy::many_single_char_names)]
2-
use ac_library_rs::{LazySegtree, MapMonoid, Monoid};
2+
use ac_library::{LazySegtree, MapMonoid, Monoid};
33
use std::io::Read;
44
use std::iter;
55

src/dsu.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/// # Example
1010
///
1111
/// ```
12-
/// use ac_library_rs::Dsu;
12+
/// use ac_library::Dsu;
1313
/// use proconio::{input, source::once::OnceSource};
1414
///
1515
/// input! {

src/math.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use std::mem::swap;
2222
/// # Example
2323
///
2424
/// ```
25-
/// use ac_library_rs::math;
25+
/// use ac_library::math;
2626
///
2727
/// assert_eq!(math::pow_mod(2, 10000, 7), 2);
2828
/// ```
@@ -63,7 +63,7 @@ pub fn pow_mod(x: i64, mut n: i64, m: u32) -> u32 {
6363
/// # Example
6464
///
6565
/// ```
66-
/// use ac_library_rs::math;
66+
/// use ac_library::math;
6767
///
6868
/// assert_eq!(math::inv_mod(3, 7), 5);
6969
/// ```
@@ -106,7 +106,7 @@ pub fn inv_mod(x: i64, m: i64) -> i64 {
106106
/// # Example
107107
///
108108
/// ```
109-
/// use ac_library_rs::math;
109+
/// use ac_library::math;
110110
///
111111
/// let r = [2, 3, 2];
112112
/// let m = [3, 5, 7];
@@ -181,7 +181,7 @@ pub fn crt(r: &[i64], m: &[i64]) -> (i64, i64) {
181181
/// # Example
182182
///
183183
/// ```
184-
/// use ac_library_rs::math;
184+
/// use ac_library::math;
185185
///
186186
/// assert_eq!(math::floor_sum(6, 5, 4, 3), 13);
187187
/// ```

src/modint.rs

+18-18
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! For most of the problems, It is sufficient to use [`ModInt1000000007`] or [`ModInt998244353`], which can be used as follows.
44
//!
55
//! ```
6-
//! use ac_library_rs::ModInt1000000007 as Mint; // rename to whatever you want
6+
//! use ac_library::ModInt1000000007 as Mint; // rename to whatever you want
77
//! use proconio::{input, source::once::OnceSource};
88
//!
99
//! input! {
@@ -18,7 +18,7 @@
1818
//! If the modulus is not fixed, you can use [`ModInt`] as follows.
1919
//!
2020
//! ```
21-
//! use ac_library_rs::ModInt as Mint; // rename to whatever you want
21+
//! use ac_library::ModInt as Mint; // rename to whatever you want
2222
//! use proconio::{input, source::once::OnceSource};
2323
//!
2424
//! input! {
@@ -73,7 +73,7 @@ pub type ModInt = DynamicModInt<DefaultId>;
7373
/// # Example
7474
///
7575
/// ```
76-
/// use ac_library_rs::ModInt1000000007 as Mint;
76+
/// use ac_library::ModInt1000000007 as Mint;
7777
/// use proconio::{input, source::once::OnceSource};
7878
///
7979
/// input! {
@@ -99,7 +99,7 @@ impl<M: Modulus> StaticModInt<M> {
9999
/// # Example
100100
///
101101
/// ```
102-
/// use ac_library_rs::ModInt1000000007 as Mint;
102+
/// use ac_library::ModInt1000000007 as Mint;
103103
///
104104
/// assert_eq!(1_000_000_007, Mint::modulus());
105105
/// ```
@@ -217,13 +217,13 @@ impl<M: Modulus> ModIntBase for StaticModInt<M> {
217217
/// #[derive(Copy, Clone, Eq, PartialEq)]
218218
/// enum $name {}
219219
///
220-
/// impl ac_library_rs::modint::Modulus for $name {
220+
/// impl ac_library::modint::Modulus for $name {
221221
/// const VALUE: u32 = $value;
222222
/// const HINT_VALUE_IS_PRIME: bool = $is_prime;
223223
///
224-
/// fn butterfly_cache() -> &'static ::std::thread::LocalKey<::std::cell::RefCell<::std::option::Option<ac_library_rs::modint::ButterflyCache<Self>>>> {
224+
/// fn butterfly_cache() -> &'static ::std::thread::LocalKey<::std::cell::RefCell<::std::option::Option<ac_library::modint::ButterflyCache<Self>>>> {
225225
/// thread_local! {
226-
/// static BUTTERFLY_CACHE: ::std::cell::RefCell<::std::option::Option<ac_library_rs::modint::ButterflyCache<$name>>> = ::std::default::Default::default();
226+
/// static BUTTERFLY_CACHE: ::std::cell::RefCell<::std::option::Option<ac_library::modint::ButterflyCache<$name>>> = ::std::default::Default::default();
227227
/// }
228228
/// &BUTTERFLY_CACHE
229229
/// }
@@ -232,7 +232,7 @@ impl<M: Modulus> ModIntBase for StaticModInt<M> {
232232
/// };
233233
/// }
234234
///
235-
/// use ac_library_rs::StaticModInt;
235+
/// use ac_library::StaticModInt;
236236
///
237237
/// modulus!(Mod101(101, true), Mod103(103, true));
238238
///
@@ -294,7 +294,7 @@ pub struct ButterflyCache<M> {
294294
/// # Example
295295
///
296296
/// ```
297-
/// use ac_library_rs::ModInt as Mint;
297+
/// use ac_library::ModInt as Mint;
298298
/// use proconio::{input, source::once::OnceSource};
299299
///
300300
/// input! {
@@ -325,7 +325,7 @@ impl<I: Id> DynamicModInt<I> {
325325
/// # Example
326326
///
327327
/// ```
328-
/// use ac_library_rs::ModInt as Mint;
328+
/// use ac_library::ModInt as Mint;
329329
///
330330
/// assert_eq!(998_244_353, Mint::modulus()); // default modulus
331331
/// ```
@@ -345,7 +345,7 @@ impl<I: Id> DynamicModInt<I> {
345345
/// # Example
346346
///
347347
/// ```
348-
/// use ac_library_rs::ModInt as Mint;
348+
/// use ac_library::ModInt as Mint;
349349
///
350350
/// Mint::set_modulus(7);
351351
/// assert_eq!(7, Mint::modulus());
@@ -547,7 +547,7 @@ pub trait ModIntBase:
547547
/// # Example
548548
///
549549
/// ```
550-
/// use ac_library_rs::modint::ModIntBase;
550+
/// use ac_library::modint::ModIntBase;
551551
///
552552
/// fn f<Z: ModIntBase>() {
553553
/// let _: u32 = Z::modulus();
@@ -567,7 +567,7 @@ pub trait ModIntBase:
567567
/// If `val` is greater than or equal to `Self::modulus()`, the behaviors are not defined.
568568
///
569569
/// ```should_panic
570-
/// use ac_library_rs::ModInt1000000007 as Mint;
570+
/// use ac_library::ModInt1000000007 as Mint;
571571
///
572572
/// let x = Mint::raw(1_000_000_007);
573573
/// let y = x + x;
@@ -584,7 +584,7 @@ pub trait ModIntBase:
584584
/// # Example
585585
///
586586
/// ```
587-
/// use ac_library_rs::modint::ModIntBase;
587+
/// use ac_library::modint::ModIntBase;
588588
///
589589
/// fn f<Z: ModIntBase>() -> Z {
590590
/// debug_assert!(Z::modulus() >= 100);
@@ -608,7 +608,7 @@ pub trait ModIntBase:
608608
/// # Example
609609
///
610610
/// ```
611-
/// use ac_library_rs::modint::ModIntBase;
611+
/// use ac_library::modint::ModIntBase;
612612
///
613613
/// fn f<Z: ModIntBase>(x: Z) {
614614
/// let _: u32 = x.val();
@@ -627,7 +627,7 @@ pub trait ModIntBase:
627627
/// # Example
628628
///
629629
/// ```
630-
/// use ac_library_rs::modint::ModIntBase;
630+
/// use ac_library::modint::ModIntBase;
631631
///
632632
/// fn f<Z: ModIntBase>(x: Z) {
633633
/// let _: Z = x.inv();
@@ -642,7 +642,7 @@ pub trait ModIntBase:
642642
/// # Example
643643
///
644644
/// ```
645-
/// use ac_library_rs::modint::ModIntBase;
645+
/// use ac_library::modint::ModIntBase;
646646
///
647647
/// fn f<Z: ModIntBase>() {
648648
/// let _ = Z::new(1u32);
@@ -664,7 +664,7 @@ pub trait ModIntBase:
664664
/// # Example
665665
///
666666
/// ```
667-
/// use ac_library_rs::modint::ModIntBase;
667+
/// use ac_library::modint::ModIntBase;
668668
///
669669
/// fn f<Z: ModIntBase>() {
670670
/// let _: Z = Z::new(2).pow(3);

src/scc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::internal_scc;
77
/// # Example
88
///
99
/// ```
10-
/// use ac_library_rs::SccGraph;
10+
/// use ac_library::SccGraph;
1111
/// use proconio::{input, source::once::OnceSource};
1212
///
1313
/// input! {

src/twosat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::internal_scc;
1616
/// ```
1717
/// #![allow(clippy::many_single_char_names)]
1818
///
19-
/// use ac_library_rs::TwoSat;
19+
/// use ac_library::TwoSat;
2020
/// use proconio::{input, marker::Bytes, source::once::OnceSource};
2121
///
2222
/// input! {

0 commit comments

Comments
 (0)