結果

問題 No.1380 Borderline
ユーザー さかぽんさかぽん
提出日時 2021-02-16 23:24:54
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 2,059 ms
コンパイル使用メモリ 101,700 KB
実行使用メモリ 22,892 KB
最終ジャッジ日時 2023-10-11 12:58:13
合計ジャッジ時間 6,566 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,660 KB
testcase_01 AC 59 ms
20,756 KB
testcase_02 AC 59 ms
20,884 KB
testcase_03 AC 59 ms
20,740 KB
testcase_04 AC 58 ms
18,660 KB
testcase_05 AC 58 ms
22,692 KB
testcase_06 AC 59 ms
22,764 KB
testcase_07 AC 59 ms
20,708 KB
testcase_08 AC 59 ms
20,812 KB
testcase_09 AC 58 ms
20,748 KB
testcase_10 AC 58 ms
20,652 KB
testcase_11 AC 59 ms
22,800 KB
testcase_12 AC 58 ms
20,744 KB
testcase_13 AC 59 ms
18,696 KB
testcase_14 AC 66 ms
20,812 KB
testcase_15 AC 66 ms
20,892 KB
testcase_16 AC 66 ms
20,892 KB
testcase_17 AC 66 ms
20,868 KB
testcase_18 AC 66 ms
20,816 KB
testcase_19 AC 66 ms
21,040 KB
testcase_20 AC 66 ms
20,764 KB
testcase_21 AC 65 ms
20,860 KB
testcase_22 AC 66 ms
20,904 KB
testcase_23 AC 66 ms
20,928 KB
testcase_24 AC 65 ms
20,724 KB
testcase_25 AC 66 ms
20,980 KB
testcase_26 AC 66 ms
22,892 KB
testcase_27 AC 66 ms
20,932 KB
testcase_28 AC 66 ms
20,928 KB
testcase_29 AC 65 ms
20,736 KB
testcase_30 AC 66 ms
21,008 KB
testcase_31 AC 65 ms
20,816 KB
testcase_32 AC 65 ms
20,940 KB
testcase_33 AC 65 ms
20,936 KB
testcase_34 AC 66 ms
20,992 KB
testcase_35 AC 66 ms
20,772 KB
testcase_36 AC 66 ms
20,712 KB
testcase_37 AC 66 ms
18,768 KB
testcase_38 AC 67 ms
22,780 KB
testcase_39 AC 67 ms
20,812 KB
testcase_40 AC 67 ms
20,824 KB
testcase_41 AC 67 ms
20,788 KB
testcase_42 AC 65 ms
20,876 KB
testcase_43 AC 66 ms
20,752 KB
testcase_44 AC 59 ms
20,760 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class A
{
	static int[] Read() => Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
	static (int, int) Read2() { var a = Read(); return (a[0], a[1]); }
	static void Main()
	{
		var (n, k) = Read2();
		var p = Read();

		Array.Sort(p);
		Array.Reverse(p);
		while (0 < k && k < n && p[k - 1] == p[k]) k--;
		Console.WriteLine(k);
	}
}
0