結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2021-04-03 14:26:31 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 29 ms / 5,000 ms |
コード長 | 390 bytes |
コンパイル時間 | 55 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 16,128 KB |
最終ジャッジ日時 | 2024-12-24 19:50:32 |
合計ジャッジ時間 | 1,441 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
(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)))