結果
| 問題 | No.1380 Borderline |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-07 15:18:40 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 29 ms / 2,000 ms |
| + 163µs | |
| コード長 | 223 bytes |
| 記録 | |
| コンパイル時間 | 789 ms |
| コンパイル使用メモリ | 82,492 KB |
| 実行使用メモリ | 62,916 KB |
| 最終ジャッジ日時 | 2026-10-10 23:31:07 |
| 合計ジャッジ時間 | 3,197 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 42 |
ソースコード
N,K= map(int,input().split())
p=list(map(int,input().split()))
max_p=max(p)
ans=0
for i in range(max_p,-1,-1):
cnt=0
for j in p:
if i<=j:
cnt+=1
if cnt<=K:
ans=max(ans,cnt)
print(ans)