結果

問題 No.32 貯金箱の憂鬱
ユーザー Yuzu MashiroYuzu Mashiro
提出日時 2021-04-03 14:26:31
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 390 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 13,732 KB
最終ジャッジ日時 2023-08-26 05:14:34
合計ジャッジ時間 1,328 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
11,740 KB
testcase_01 AC 15 ms
11,872 KB
testcase_02 AC 15 ms
11,776 KB
testcase_03 AC 15 ms
13,732 KB
testcase_04 AC 15 ms
11,664 KB
testcase_05 AC 15 ms
11,740 KB
testcase_06 AC 15 ms
11,880 KB
testcase_07 AC 16 ms
11,760 KB
testcase_08 AC 14 ms
11,868 KB
testcase_09 AC 15 ms
11,872 KB
testcase_10 AC 15 ms
11,924 KB
testcase_11 AC 14 ms
11,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define l (string->number (read-line)))
(define m (string->number (read-line)))
(define n (string->number (read-line)))
(define remining (+ (* l 100) (* m 25) n))

(print (let*-values (((c1000 r1000) (quotient&remainder remining 1000))
                     ((c100 r100) (quotient&remainder r1000 100))
                     ((c25 c1) (quotient&remainder r100 25)))
        (+ c100 c25 c1)))
0