結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
![]() |
提出日時 | 2015-08-23 21:01:17 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 806 bytes |
コンパイル時間 | 24 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 16,128 KB |
最終ジャッジ日時 | 2024-07-18 13:04:56 |
合計ジャッジ時間 | 715 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 9 |
ソースコード
(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 One) ) ) ) (let loop((i TwentyFive)) (when (>= i 4) (begin (set! TwentyFive (- TwentyFive 4)) (set! Handred (+ Handred 1)) (loop TwentyFive) ) ) ) (set! Handred (modulo Handred 10)) (display (+ One TwentyFive Handred)) (newline) ) )