結果

問題 No.476 正しくない平均
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2019-11-17 20:57:18
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 343 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 11,034 ms
コンパイル使用メモリ 428,448 KB
実行使用メモリ 57,160 KB
最終ジャッジ日時 2024-09-25 06:08:49
合計ジャッジ時間 20,706 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main(){val a=readLine()!!.split(" ")[1].toDouble()
val x=readLine()!!.split(" ").map{it.toDouble()}.average()
println(if(a==x)"YES" else "NO")}
0