結果

問題 No.1380 Borderline
ユーザー 👑 yumechiyumechi
提出日時 2021-03-03 00:12:20
言語 Scala(Beta)
(3.4.0)
結果
RE  
実行時間 -
コード長 238 bytes
コンパイル時間 11,004 ms
コンパイル使用メモリ 270,128 KB
実行使用メモリ 66,936 KB
最終ジャッジ日時 2024-04-14 05:08:35
合計ジャッジ時間 56,848 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 975 ms
66,020 KB
testcase_01 AC 973 ms
66,252 KB
testcase_02 RE -
testcase_03 AC 974 ms
66,228 KB
testcase_04 AC 987 ms
66,436 KB
testcase_05 AC 976 ms
66,380 KB
testcase_06 AC 989 ms
66,332 KB
testcase_07 AC 996 ms
66,468 KB
testcase_08 RE -
testcase_09 AC 994 ms
66,428 KB
testcase_10 AC 1,000 ms
66,524 KB
testcase_11 AC 988 ms
66,180 KB
testcase_12 AC 965 ms
66,188 KB
testcase_13 AC 981 ms
66,252 KB
testcase_14 AC 1,020 ms
66,388 KB
testcase_15 AC 1,015 ms
66,588 KB
testcase_16 AC 1,004 ms
66,336 KB
testcase_17 AC 1,017 ms
66,428 KB
testcase_18 AC 1,002 ms
66,524 KB
testcase_19 RE -
testcase_20 AC 1,010 ms
66,516 KB
testcase_21 AC 1,032 ms
66,620 KB
testcase_22 AC 1,019 ms
66,552 KB
testcase_23 AC 1,019 ms
66,632 KB
testcase_24 AC 1,032 ms
66,448 KB
testcase_25 AC 1,029 ms
66,628 KB
testcase_26 AC 1,028 ms
66,724 KB
testcase_27 AC 1,028 ms
66,520 KB
testcase_28 AC 1,038 ms
66,712 KB
testcase_29 AC 1,039 ms
66,568 KB
testcase_30 AC 1,023 ms
66,376 KB
testcase_31 AC 1,028 ms
66,596 KB
testcase_32 AC 1,030 ms
66,408 KB
testcase_33 AC 1,023 ms
66,716 KB
testcase_34 AC 1,023 ms
66,352 KB
testcase_35 AC 1,025 ms
66,628 KB
testcase_36 AC 1,021 ms
66,636 KB
testcase_37 AC 1,019 ms
66,528 KB
testcase_38 AC 1,017 ms
66,468 KB
testcase_39 AC 1,025 ms
66,604 KB
testcase_40 AC 1,024 ms
66,592 KB
testcase_41 AC 1,016 ms
66,444 KB
testcase_42 AC 1,016 ms
66,604 KB
testcase_43 AC 1,014 ms
66,516 KB
testcase_44 AC 966 ms
66,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val n = sc.nextInt
  val k = sc.nextInt
  val pn = Array.fill(n)(sc.nextInt)
  println((0 to pn.max).map(a => pn.count(_ >= a)).filter(_ <= k).max)
}
0