結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-16 03:16:04 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 5,000 ms |
| コード長 | 325 bytes |
| コンパイル時間 | 114 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-23 07:29:40 |
| 合計ジャッジ時間 | 1,212 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
C100 = int(input())
C25 = int(input())
C1 = int(input())
N1000 = 0
while 1:
if C1 >=25:
C25 += 1
C1 -= 25
elif C25>=4:
C100 += 1
C25 -= 4
elif C100>=10:
N1000 += 1
C100 -= 10
elif C100<10 and C25<4 and C1<25:
break
print(C1+C25+C100)