init
This commit is contained in:
6
problems/p38/Cargo.toml
Normal file
6
problems/p38/Cargo.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "p38"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
18
problems/p38/src/main.rs
Normal file
18
problems/p38/src/main.rs
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user