Skip to content

Commit faf6ba0

Browse files
committed
Add examples/library-checker-sum-of-floor-linear.rs
1 parent 98f4faa commit faf6ba0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#[macro_use]
2+
extern crate input as _;
3+
#[macro_use]
4+
extern crate proconio_derive as _;
5+
6+
use ac_library_rs::math;
7+
8+
#[fastout]
9+
fn main() {
10+
input! {
11+
nmabs: [(i64, i64, i64, i64)],
12+
}
13+
14+
for (n, m, a, b) in nmabs {
15+
println!("{}", math::floor_sum(n, m, a, b));
16+
}
17+
}

0 commit comments

Comments
 (0)