Skip to content

Commit 167cee8

Browse files
cargo fmt
1 parent b27d10d commit 167cee8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/practice2_j_segment_tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88

99
let n: usize = input.next().unwrap().parse().unwrap();
1010
let q: usize = input.next().unwrap().parse().unwrap();
11-
let mut segtree = Segtree::<Max<u32>>::new(n+1);
11+
let mut segtree = Segtree::<Max<u32>>::new(n + 1);
1212
for i in 1..=n {
1313
segtree.set(i, input.next().unwrap().parse().unwrap());
1414
}
@@ -22,7 +22,7 @@ fn main() {
2222
2 => {
2323
let l = input.next().unwrap().parse().unwrap();
2424
let r: usize = input.next().unwrap().parse().unwrap();
25-
println!("{}", segtree.prod(l, r+1));
25+
println!("{}", segtree.prod(l, r + 1));
2626
}
2727
3 => {
2828
let x = input.next().unwrap().parse().unwrap();

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub use modint::{
2727
ModInt998244353, Modulus, RemEuclidU32, StaticModInt,
2828
};
2929
pub use scc::SccGraph;
30-
pub use segtree::{Monoid, Segtree, Max};
30+
pub use segtree::{Max, Monoid, Segtree};
3131
pub use string::{
3232
lcp_array, lcp_array_arbitrary, suffix_array, suffix_array_arbitrary, suffix_array_manual,
3333
z_algorithm, z_algorithm_arbitrary,

0 commit comments

Comments
 (0)