結果

問題 No.1380 Borderline
ユーザー suiso11suiso11
提出日時 2021-02-07 22:18:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 1,323 ms
コンパイル使用メモリ 86,444 KB
実行使用メモリ 71,608 KB
最終ジャッジ日時 2023-09-17 22:23:34
合計ジャッジ時間 5,437 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,308 KB
testcase_01 WA -
testcase_02 AC 77 ms
71,188 KB
testcase_03 AC 76 ms
71,236 KB
testcase_04 AC 77 ms
71,236 KB
testcase_05 AC 75 ms
71,068 KB
testcase_06 AC 75 ms
71,240 KB
testcase_07 AC 76 ms
71,024 KB
testcase_08 WA -
testcase_09 AC 78 ms
71,496 KB
testcase_10 WA -
testcase_11 AC 75 ms
71,288 KB
testcase_12 AC 76 ms
71,376 KB
testcase_13 AC 77 ms
71,300 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 76 ms
71,076 KB
testcase_17 WA -
testcase_18 AC 77 ms
71,248 KB
testcase_19 WA -
testcase_20 AC 76 ms
71,180 KB
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 AC 79 ms
71,460 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 75 ms
71,444 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 77 ms
71,244 KB
testcase_39 AC 75 ms
71,292 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
p = list(map(int,input().split()))
p.sort
if p.count(p[-(k-1)]) >1:
  print(sum([i > p[-(k-1)] for i in p]))
else:
  print(k)
0