結果

問題 No.1380 Borderline
ユーザー さかぽんさかぽん
提出日時 2021-02-16 23:17:19
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 347 bytes
コンパイル時間 3,093 ms
コンパイル使用メモリ 100,516 KB
実行使用メモリ 22,984 KB
最終ジャッジ日時 2023-10-11 12:53:47
合計ジャッジ時間 8,882 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,748 KB
testcase_01 AC 58 ms
18,684 KB
testcase_02 AC 58 ms
20,856 KB
testcase_03 AC 59 ms
20,668 KB
testcase_04 AC 58 ms
20,788 KB
testcase_05 RE -
testcase_06 AC 59 ms
20,796 KB
testcase_07 RE -
testcase_08 AC 59 ms
22,748 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 60 ms
22,808 KB
testcase_12 AC 58 ms
22,736 KB
testcase_13 AC 58 ms
20,844 KB
testcase_14 AC 65 ms
20,972 KB
testcase_15 AC 65 ms
20,856 KB
testcase_16 AC 65 ms
20,972 KB
testcase_17 AC 65 ms
20,956 KB
testcase_18 AC 65 ms
20,904 KB
testcase_19 AC 65 ms
22,816 KB
testcase_20 AC 65 ms
20,988 KB
testcase_21 AC 65 ms
22,984 KB
testcase_22 AC 66 ms
20,796 KB
testcase_23 AC 66 ms
18,880 KB
testcase_24 AC 65 ms
22,812 KB
testcase_25 AC 65 ms
22,972 KB
testcase_26 AC 64 ms
20,928 KB
testcase_27 AC 66 ms
20,880 KB
testcase_28 AC 65 ms
22,916 KB
testcase_29 AC 65 ms
20,868 KB
testcase_30 AC 65 ms
20,840 KB
testcase_31 AC 65 ms
20,936 KB
testcase_32 AC 64 ms
20,792 KB
testcase_33 AC 67 ms
20,916 KB
testcase_34 AC 66 ms
20,872 KB
testcase_35 AC 66 ms
20,900 KB
testcase_36 AC 66 ms
20,988 KB
testcase_37 AC 65 ms
20,912 KB
testcase_38 AC 66 ms
20,800 KB
testcase_39 AC 64 ms
20,920 KB
testcase_40 AC 65 ms
20,800 KB
testcase_41 AC 65 ms
20,804 KB
testcase_42 AC 65 ms
22,876 KB
testcase_43 AC 65 ms
22,828 KB
testcase_44 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 (k > 0 && p[k - 1] == p[k]) k--;
		Console.WriteLine(k);
	}
}
0