Skip to main content

prcn_lib/
prelude.rs

1// from std
2pub use std::cmp::{max, min};
3pub use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet, VecDeque};
4
5// from num-integer
6// binomial(n, r)     => nCr
7// n.gcd(&m)          => gcd(n, m)
8// n.lcm(&m)          => lcm(n, m)
9// a.extended_gcd(&b) => Extended(gcd(a, b), x, y, ()) // a * x + b * y = gcd(a, b) の唯一解
10pub use num::integer::binomial;
11pub use num::Integer;
12
13// from num-bigint
14pub use num::{BigInt, BigUint};
15
16// from random
17pub use rand::random;
18
19// from proconio
20pub use proconio::{derive_readable, fastout, input, is_stdin_empty, marker::*};
21
22// from itertools
23pub use itertools::*;
24
25// from maplit
26pub use maplit::{btreemap, btreeset, hashmap, hashset};
27
28// pub use permutohedron;
29
30// from crate
31pub use crate::accumulate::Accumulate;
32pub use crate::binary_search::{binary_search, lower_bound, upper_bound};
33pub use crate::grid::Grid;
34pub use crate::idx::Idx2D;
35pub use crate::math::*;
36pub use crate::modint::{ComTable, ModInt};
37pub use crate::shuffle::shuffle;
38pub use crate::unique_count;