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

6
problems/p38/Cargo.toml Normal file
View File

@@ -0,0 +1,6 @@
[package]
name = "p38"
version = "0.1.0"
edition = "2024"
[dependencies]

18
problems/p38/src/main.rs Normal file
View File

@@ -0,0 +1,18 @@
// 全数字的倍数
// 将$192$分别与$1$、$2$、$3$相乘:
//
// $192 × 1 = 192$
//
// $192 × 2 = 384$
//
// $192 × 3 = 576$
//
// 将这些乘积拼接起来,可以得到一个$1$至$9$全数字的数$192384576$,因此称$192384576$为$192$和$(1,2,3)$的拼接乘积。
//
// 类似地,将$9$分别与$1$、$2$、$3$、$4$、$5$相乘,可以得到$1$至$9$全数字的数$918273645$,并称之为$9$和$(1,2,3,4,5)$的拼接乘积。
//
// 考虑所有$n>1$时某个整数和$(1,2, … ,n)$的拼接乘积,其中最大的$1$至$9$全数字的数是多少?
fn main() {
// 987654321 * 1
}