結果

問題 No.1586 Equal Array
ユーザー fukafukatanifukafukatani
提出日時 2021-07-14 09:35:03
言語 Scala(Beta)
(3.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 225 bytes
コンパイル時間 9,266 ms
コンパイル使用メモリ 265,248 KB
実行使用メモリ 74,100 KB
最終ジャッジ日時 2023-09-16 06:58:28
合計ジャッジ時間 40,114 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 TLE -
testcase_02 AC 996 ms
63,476 KB
testcase_03 AC 994 ms
63,452 KB
testcase_04 TLE -
testcase_05 TLE -
testcase_06 TLE -
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 AC 980 ms
62,928 KB
testcase_12 AC 991 ms
63,416 KB
testcase_13 TLE -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 AC 991 ms
63,120 KB
testcase_18 TLE -
testcase_19 TLE -
testcase_20 AC 967 ms
62,924 KB
testcase_21 AC 978 ms
63,004 KB
testcase_22 AC 987 ms
62,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt
  val p = List.fill(n)(sc.nextLong)
  if (p.sum % n.asInstanceOf[Long] == 0l) {
    println("Yes")
  } else {
    println("No")
  }
}
0