Problem 20 » 履歴 » バージョン 1
Noppi, 2024/01/02 10:06
| 1 | 1 | Noppi | [ホーム](https://redmine.noppi.jp) - [[Wiki|Project Euler]] |
|---|---|---|---|
| 2 | # [[Problem 20]] |
||
| 3 | |||
| 4 | ## Factorial Digit Sum |
||
| 5 | $n!$ means $n \times (n - 1) \times \cdots \times 3 \times 2 \times 1$. |
||
| 6 | For example, $10! = 10 \times 9 \times \cdots \times 3 \times 2 \times 1 = 3628800$,<br>and the sum of the digits in the number $10!$ is $3 + 6 + 2 + 8 + 8 + 0 + 0 = 27$. |
||
| 7 | Find the sum of the digits in the number $100!$. |
||
| 8 | |||
| 9 | ## 各位の数字の和 2 |
||
| 10 | n × (n - 1) × ... × 3 × 2 × 1 を n! と表す. |
||
| 11 | 例えば, 10! = 10 × 9 × ... × 3 × 2 × 1 = 3628800 となる. |
||
| 12 | この数の各桁の合計は 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27 である. |
||
| 13 | では, 100! の各位の数字の和を求めよ. |
||
| 14 | 注: [[Problem 16]] も各位の数字の和に関する問題です。解いていない方は解いてみてください。 |
||
| 15 | |||
| 16 | ```scheme |
||
| 17 | ``` |