結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2020-05-04 17:49:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 456 bytes |
コンパイル時間 | 175 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-07-23 08:08:23 |
合計ジャッジ時間 | 1,103 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 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 = math.floor(result_n + result_m + result_l) print (result)