結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | Rin |
提出日時 | 2015-08-23 21:01:17 |
言語 | Scheme (Gauche-0.9.14) |
結果 |
WA
|
実行時間 | - |
コード長 | 806 bytes |
コンパイル時間 | 39 ms |
コンパイル使用メモリ | 5,212 KB |
実行使用メモリ | 13,912 KB |
最終ジャッジ日時 | 2023-09-25 16:37:55 |
合計ジャッジ時間 | 981 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
11,680 KB |
testcase_01 | AC | 18 ms
11,896 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 18 ms
11,788 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
ソースコード
(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) ) )