結果

問題 No.1380 Borderline
ユーザー bluemeganebluemegane
提出日時 2021-04-17 07:37:25
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 592 bytes
コンパイル時間 1,173 ms
コンパイル使用メモリ 67,856 KB
実行使用メモリ 23,724 KB
最終ジャッジ日時 2023-09-16 13:14:20
合計ジャッジ時間 5,407 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,572 KB
testcase_01 AC 57 ms
21,416 KB
testcase_02 AC 60 ms
21,420 KB
testcase_03 AC 58 ms
21,604 KB
testcase_04 AC 59 ms
21,580 KB
testcase_05 AC 61 ms
21,584 KB
testcase_06 AC 58 ms
21,544 KB
testcase_07 AC 60 ms
21,544 KB
testcase_08 AC 59 ms
21,408 KB
testcase_09 AC 59 ms
21,544 KB
testcase_10 AC 59 ms
23,392 KB
testcase_11 AC 58 ms
21,436 KB
testcase_12 AC 59 ms
23,364 KB
testcase_13 AC 58 ms
21,484 KB
testcase_14 AC 68 ms
21,592 KB
testcase_15 AC 67 ms
21,528 KB
testcase_16 AC 67 ms
21,696 KB
testcase_17 AC 68 ms
23,500 KB
testcase_18 AC 68 ms
23,572 KB
testcase_19 AC 68 ms
23,684 KB
testcase_20 AC 67 ms
23,532 KB
testcase_21 AC 68 ms
21,860 KB
testcase_22 AC 68 ms
23,568 KB
testcase_23 AC 68 ms
21,376 KB
testcase_24 AC 69 ms
23,680 KB
testcase_25 AC 68 ms
21,912 KB
testcase_26 AC 68 ms
23,472 KB
testcase_27 AC 68 ms
21,584 KB
testcase_28 AC 68 ms
21,552 KB
testcase_29 AC 68 ms
23,496 KB
testcase_30 AC 67 ms
21,452 KB
testcase_31 AC 67 ms
21,512 KB
testcase_32 AC 67 ms
19,680 KB
testcase_33 AC 68 ms
21,580 KB
testcase_34 AC 68 ms
21,520 KB
testcase_35 AC 68 ms
21,524 KB
testcase_36 AC 67 ms
21,516 KB
testcase_37 AC 68 ms
19,492 KB
testcase_38 AC 68 ms
21,676 KB
testcase_39 AC 69 ms
23,724 KB
testcase_40 AC 67 ms
19,400 KB
testcase_41 AC 69 ms
21,644 KB
testcase_42 AC 67 ms
23,676 KB
testcase_43 AC 68 ms
21,524 KB
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

using static System.Math;
using System.Linq;
using System;

public class Hello
{
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var k = int.Parse(line[1]);
        line = Console.ReadLine().Trim().Split(' ');
        var p = Array.ConvertAll(line, int.Parse);
        getAns(k, p);
    }
    static void getAns(int k, int[] p)
    {
        var ans = 0;
        for (int i = 0; i <= 400; i++)
        {
            var ok = p.Count(x => x > i);
            if (ok <= k) ans = Max(ans, ok);
        }
        Console.WriteLine(ans);
    }
}
0