結果

問題 No.476 正しくない平均
ユーザー 👑 はまやんはまやんはまやんはまやん
提出日時 2017-06-01 17:32:45
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 275 bytes
コンパイル時間 11,867 ms
コンパイル使用メモリ 413,000 KB
実行使用メモリ 55,708 KB
最終ジャッジ日時 2023-08-12 18:30:19
合計ジャッジ時間 22,815 ms
ジャッジサーバーID
(参考情報)
judge9 / judge8
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 319 ms
53,340 KB
testcase_01 AC 324 ms
53,380 KB
testcase_02 AC 320 ms
53,500 KB
testcase_03 AC 323 ms
55,656 KB
testcase_04 AC 321 ms
53,828 KB
testcase_05 AC 318 ms
53,656 KB
testcase_06 AC 319 ms
53,356 KB
testcase_07 AC 319 ms
53,860 KB
testcase_08 AC 320 ms
53,580 KB
testcase_09 AC 318 ms
53,596 KB
testcase_10 AC 321 ms
53,824 KB
testcase_11 AC 319 ms
53,408 KB
testcase_12 AC 319 ms
53,600 KB
testcase_13 AC 319 ms
53,468 KB
testcase_14 AC 317 ms
53,476 KB
testcase_15 AC 319 ms
53,856 KB
testcase_16 AC 321 ms
53,432 KB
testcase_17 AC 325 ms
53,436 KB
testcase_18 AC 320 ms
53,576 KB
testcase_19 WA -
testcase_20 AC 319 ms
53,568 KB
testcase_21 AC 322 ms
53,612 KB
testcase_22 AC 325 ms
53,420 KB
testcase_23 AC 325 ms
53,572 KB
testcase_24 AC 318 ms
53,784 KB
testcase_25 AC 318 ms
53,408 KB
testcase_26 AC 318 ms
53,424 KB
testcase_27 AC 318 ms
53,344 KB
testcase_28 AC 318 ms
53,368 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

import java.util.*

fun main(args: Array<String>) {
    val cin = Scanner(System.`in`)
    var N = cin.nextInt()
    var K = cin.nextInt()

    var sm = 0
    for(i in 1..N) {
        var x = cin.nextInt()
        sm += x
    }

    println(if(sm == K * N) "YES" else "NO")
}
0