結果
| 問題 |
No.1380 Borderline
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-02-07 20:45:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 2,000 ms |
| コード長 | 186 bytes |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 82,224 KB |
| 実行使用メモリ | 72,704 KB |
| 最終ジャッジ日時 | 2024-07-05 17:02:52 |
| 合計ジャッジ時間 | 3,554 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 41 |
ソースコード
n,k = map(int,input().split())
*a, = map(int,input().split())
ans = 0
for i in range(401):
c = sum(1 for ai in a if ai >= i)
if c <= k:
ans = max(ans,c)
print(ans)
convexineq