結果

問題 No.1380 Borderline
ユーザー 👑 yumechiyumechi
提出日時 2021-03-03 00:16:40
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 1,049 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 8,980 ms
コンパイル使用メモリ 274,380 KB
実行使用メモリ 66,708 KB
最終ジャッジ日時 2024-04-14 05:44:45
合計ジャッジ時間 56,902 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 984 ms
66,192 KB
testcase_01 AC 977 ms
66,304 KB
testcase_02 AC 980 ms
66,428 KB
testcase_03 AC 984 ms
66,380 KB
testcase_04 AC 991 ms
66,504 KB
testcase_05 AC 971 ms
66,220 KB
testcase_06 AC 993 ms
66,140 KB
testcase_07 AC 997 ms
66,384 KB
testcase_08 AC 1,014 ms
66,332 KB
testcase_09 AC 999 ms
66,572 KB
testcase_10 AC 998 ms
66,272 KB
testcase_11 AC 998 ms
66,636 KB
testcase_12 AC 991 ms
66,432 KB
testcase_13 AC 982 ms
66,408 KB
testcase_14 AC 1,027 ms
66,620 KB
testcase_15 AC 1,036 ms
66,708 KB
testcase_16 AC 1,027 ms
66,512 KB
testcase_17 AC 1,023 ms
66,608 KB
testcase_18 AC 1,034 ms
66,656 KB
testcase_19 AC 1,033 ms
66,556 KB
testcase_20 AC 1,011 ms
66,584 KB
testcase_21 AC 1,037 ms
66,660 KB
testcase_22 AC 1,022 ms
66,496 KB
testcase_23 AC 1,021 ms
66,628 KB
testcase_24 AC 1,031 ms
66,608 KB
testcase_25 AC 1,031 ms
66,636 KB
testcase_26 AC 1,032 ms
66,632 KB
testcase_27 AC 1,019 ms
66,416 KB
testcase_28 AC 1,021 ms
66,604 KB
testcase_29 AC 1,026 ms
66,392 KB
testcase_30 AC 1,022 ms
66,608 KB
testcase_31 AC 1,021 ms
66,552 KB
testcase_32 AC 1,038 ms
66,492 KB
testcase_33 AC 1,049 ms
66,416 KB
testcase_34 AC 1,041 ms
66,400 KB
testcase_35 AC 1,019 ms
66,672 KB
testcase_36 AC 1,026 ms
66,400 KB
testcase_37 AC 1,023 ms
66,392 KB
testcase_38 AC 1,019 ms
66,624 KB
testcase_39 AC 1,022 ms
66,632 KB
testcase_40 AC 1,033 ms
66,492 KB
testcase_41 AC 1,025 ms
66,364 KB
testcase_42 AC 1,023 ms
66,620 KB
testcase_43 AC 1,019 ms
66,664 KB
testcase_44 AC 977 ms
66,280 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).appended(0).max)
}
0