操作
Problem 5 » 履歴 » リビジョン 1
リビジョン 1/3
| 次 »
Noppi, 2023/12/27 01:37
Problem 5¶
#!r6rs
#!chezscheme
(import (chezscheme))
(define answer-5
(let ((n (* 11 13 15 16 17 19)))
(let loop ((i n))
(if (and
(zero? (mod i 12))
(zero? (mod i 14))
(zero? (mod i 18))
(zero? (mod i 20)))
i
(loop (+ i n))))))
(printf "5: ~D~%" answer-5)
Noppi が2023/12/27に更新 · 1件の履歴