結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
|
提出日時 | 2020-05-04 17:48:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 444 bytes |
コンパイル時間 | 448 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-24 17:58:13 |
合計ジャッジ時間 | 1,132 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 12 |
ソースコード
import math l = int(input()) #100円硬貨の枚数 m = int(input()) #25円硬貨の枚数 n = int(input()) #1円硬貨の枚数 change_n = math.floor((n * 1) / 25) result_n = n-((change_n * 25)/1) m = m + change_n change_m = math.floor((m * 25) / 100) result_m = m-((change_m * 100)/25) l = l + change_m change_l = math.floor((l * 100) / 1000) result_l = l-((change_l * 1000)/100) result = result_n + result_m + result_l print (result)