結果

問題 No.1380 Borderline
ユーザー nohakai3nohakai3
提出日時 2022-07-08 16:47:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 7,980 KB
最終ジャッジ日時 2023-08-27 15:51:07
合計ジャッジ時間 2,786 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,784 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 16 ms
7,868 KB
testcase_06 AC 17 ms
7,844 KB
testcase_07 AC 16 ms
7,848 KB
testcase_08 WA -
testcase_09 AC 16 ms
7,776 KB
testcase_10 AC 16 ms
7,856 KB
testcase_11 AC 16 ms
7,804 KB
testcase_12 AC 16 ms
7,928 KB
testcase_13 AC 16 ms
7,920 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 24 ms
7,964 KB
testcase_35 AC 24 ms
7,924 KB
testcase_36 AC 24 ms
7,784 KB
testcase_37 AC 24 ms
7,788 KB
testcase_38 AC 24 ms
7,852 KB
testcase_39 AC 24 ms
7,724 KB
testcase_40 WA -
testcase_41 AC 24 ms
7,940 KB
testcase_42 AC 24 ms
7,768 KB
testcase_43 WA -
testcase_44 AC 16 ms
7,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
P=list(map(int,input().split()))
l=[i for i in range(0,402)]
anss=[]

for x in l:
    ans=0
    for i in range(n):
        if l[i]>=x:
            ans+=1
    anss.append(ans)
ans=0
anss.sort()
for x in anss:
    if k>=x:
        ans=x
print(ans)
0