結果
問題 |
No.1380 Borderline
|
ユーザー |
![]() |
提出日時 | 2021-02-07 20:34:10 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 220 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 54,016 KB |
最終ジャッジ日時 | 2024-07-04 13:38:27 |
合計ジャッジ時間 | 3,526 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 5 WA * 36 |
ソースコード
from collections import Counter n, k = map(int, input().split()) p = list(map(int, input().split())) c = list(reversed(sorted(Counter(p).items()))) t = 0 for k, x in c: if t + x > k: break t += x print(t)