結果
| 問題 |
No.156 キャンディー・ボックス
|
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-09-17 14:26:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 331 bytes |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,440 KB |
| 最終ジャッジ日時 | 2024-07-07 10:33:00 |
| 合計ジャッジ時間 | 13,443 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 28 TLE * 1 -- * 1 |
ソースコード
# No.156 キャンディー・ボックス
n, m = [int(i) for i in input().split()]
c = [int(i) for i in input().split()]
zero_box = 0
for i in range(m):
tmp = [c[j] for j in range(n) if c[j] != 0]
minimum = min(tmp)
c[c.index(minimum)] -= 1
for i in range(n):
if c[i] == 0:
zero_box += 1
print(zero_box)
fV9TwBhUoa9S3eV