結果

問題 No.99 ジャンピング駒
コンテスト
ユーザー バカらっく
提出日時 2019-09-29 18:13:12
言語 Kotlin
(2.3.20)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
AC  
実行時間 468 ms / 5,000 ms
コード長 194 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 10,076 ms
コンパイル使用メモリ 459,256 KB
実行使用メモリ 66,092 KB
最終ジャッジ日時 2026-04-19 06:22:07
合計ジャッジ時間 12,467 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fun main(arr:Array<String>) {
    val komaCount = readLine()!!.toInt()
    val ans = readLine()!!.split(" ").filter { it.toLong() % 2 == 0L }.count() * 2 - komaCount
    println(Math.abs(ans))
}
0