結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
Rin
|
| 提出日時 | 2015-08-23 20:55:40 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 984 bytes |
| コンパイル時間 | 27 ms |
| コンパイル使用メモリ | 6,688 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2024-07-18 13:04:53 |
| 合計ジャッジ時間 | 839 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 RE * 11 |
ソースコード
(let (
(One (read (current-input-port)))
(TwentyFive (read (current-input-port)))
(Handred (read (current-input-port)))
)
(begin
(let loop((i One))
(when (>= i 25)
(begin
(set! One (- One 25))
(set! TwentyFive (+ TwentyFive 1))
(loop (i One))
)
)
)
(let loop((i TwentyFive))
(when (>= i 4)
(begin
(set! TwentyFive (- TwentyFive 4))
(set! Handred (+ Handred 1))
(loop (i TwentyFive))
)
)
)
(let loop((i Handred))
(when (>= i 10)
(begin
(set! Handred (- Handred 10))
(loop (i Handred))
)
)
)
(display (+ One TwentyFive Handred))
(newline)
)
)
Rin