結果
問題 |
No.99 ジャンピング駒
|
ユーザー |
![]() |
提出日時 | 2019-09-29 18:13:12 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 499 ms / 5,000 ms |
コード長 | 194 bytes |
コンパイル時間 | 10,957 ms |
コンパイル使用メモリ | 439,504 KB |
実行使用メモリ | 64,584 KB |
最終ジャッジ日時 | 2024-10-03 04:33:09 |
合計ジャッジ時間 | 15,024 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'arr' is never used fun main(arr:Array<String>) { ^
ソースコード
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)) }