結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | hebiyan |
提出日時 | 2017-02-08 14:05:10 |
言語 | Scheme (Gauche-0.9.14) |
結果 |
AC
|
実行時間 | 25 ms / 5,000 ms |
コード長 | 236 bytes |
コンパイル時間 | 119 ms |
コンパイル使用メモリ | 5,280 KB |
実行使用メモリ | 14,728 KB |
最終ジャッジ日時 | 2023-09-30 08:22:20 |
合計ジャッジ時間 | 1,474 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 25 ms
12,596 KB |
testcase_01 | AC | 25 ms
12,812 KB |
testcase_02 | AC | 25 ms
14,728 KB |
testcase_03 | AC | 24 ms
12,648 KB |
testcase_04 | AC | 24 ms
12,812 KB |
testcase_05 | AC | 25 ms
12,596 KB |
testcase_06 | AC | 25 ms
12,608 KB |
testcase_07 | AC | 25 ms
12,612 KB |
testcase_08 | AC | 25 ms
12,636 KB |
testcase_09 | AC | 25 ms
12,572 KB |
testcase_10 | AC | 25 ms
12,808 KB |
testcase_11 | AC | 25 ms
12,684 KB |
ソースコード
(define (solve c xxv i) (let* ((rem-i (mod i 25)) (exd-xxv (+ xxv (div i 25))) (rem-xxv (mod exd-xxv 4)) (exd-c (+ c (div exd-xxv 4))) (rem-c (mod exd-c 10))) (+ rem-i rem-xxv rem-c))) (print (solve (read) (read) (read)))