結果
| 問題 | No.1380 Borderline |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-07 15:18:40 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 32 ms / 2,000 ms |
| + 198µs | |
| コード長 | 223 bytes |
| 記録 | |
| コンパイル時間 | 74 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 61,568 KB |
| 最終ジャッジ日時 | 2026-09-12 06:52:48 |
| 合計ジャッジ時間 | 3,814 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 41 |
ソースコード
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)