結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-14 17:17:18 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 144 ms / 5,000 ms |
| コード長 | 478 bytes |
| 記録 | |
| コンパイル時間 | 553 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-03 13:05:53 |
| 合計ジャッジ時間 | 3,251 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
# -*- coding: utf-8 -*-
if __name__ == '__main__':
bill_1000 = 0
coin_100 = int(input())
coin_25 = int(input())
coin_1 = int(input())
quotient, remainder = divmod(coin_1, 25)
coin_25 += quotient
coin_1 = remainder
quotient, remainder = divmod(coin_25, 4)
coin_100 += quotient
coin_25 = remainder
quotient, remainder = divmod(coin_100, 10)
bill_1000 += quotient
coin_100 = remainder
print(coin_100 + coin_25 + coin_1)