結果
| 問題 | No.1380 Borderline |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-08 00:41:18 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 31 ms / 2,000 ms |
| + 417µs | |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 81,940 KB |
| 実行使用メモリ | 65,384 KB |
| 最終ジャッジ日時 | 2026-10-10 23:25:01 |
| 合計ジャッジ時間 | 3,273 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 42 |
ソースコード
N,K = map(int,input().split())
P = list(map(int,input().split()))
ans = 0
for B in range(max(P)+2):
count = 0
for p in P:
if p >= B:
count += 1
if count <= K:
ans = max(ans,count)
print(ans)