1
0
This commit is contained in:
2026-02-04 11:15:03 +08:00
commit 8b20a5dd21
125 changed files with 4177 additions and 0 deletions

8
problems/p5/Cargo.toml Normal file
View File

@@ -0,0 +1,8 @@
[package]
name = "p5"
version = "0.1.0"
edition = "2024"
[dependencies]
num-integer = "0.1"

9
problems/p5/src/main.rs Normal file
View File

@@ -0,0 +1,9 @@
use num_integer::Integer;
fn main() {
let mut result = 1;
for i in 1..=20 {
result = i.lcm(&result);
}
println!("{result}");
}