結果
問題 | No.156 キャンディー・ボックス |
ユーザー |
|
提出日時 | 2024-05-12 19:04:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 179 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-20 09:12:45 |
合計ジャッジ時間 | 9,171 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 28 TLE * 2 |
ソースコード
n, m = map(int, input().split())C = list(map(int, input().split()))C.sort()for i in range(n):while C[i] > 0 and m > 0:C[i] -= 1m -= 1print(C.count(0))