結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
|
提出日時 | 2017-12-14 17:17:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 5,000 ms |
コード長 | 478 bytes |
コンパイル時間 | 311 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-23 06:48:56 |
合計ジャッジ時間 | 1,273 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)