結果

問題 No.1586 Equal Array
ユーザー fukafukatanifukafukatani
提出日時 2021-07-14 09:34:10
言語 Scala(Beta)
(3.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 224 bytes
コンパイル時間 8,484 ms
コンパイル使用メモリ 251,868 KB
実行使用メモリ 75,204 KB
最終ジャッジ日時 2023-09-16 06:57:45
合計ジャッジ時間 40,305 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 988 ms
63,008 KB
testcase_01 TLE -
testcase_02 TLE -
testcase_03 TLE -
testcase_04 TLE -
testcase_05 TLE -
testcase_06 TLE -
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 AC 984 ms
63,552 KB
testcase_12 AC 991 ms
62,944 KB
testcase_13 TLE -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 AC 996 ms
64,064 KB
testcase_18 TLE -
testcase_19 TLE -
testcase_20 TLE -
testcase_21 AC 998 ms
63,056 KB
testcase_22 AC 997 ms
63,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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