結果
問題 | No.99 ジャンピング駒 |
ユーザー | バカらっく |
提出日時 | 2019-09-29 18:13:12 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 500 ms / 5,000 ms |
コード長 | 194 bytes |
コンパイル時間 | 11,965 ms |
コンパイル使用メモリ | 429,724 KB |
実行使用メモリ | 69,700 KB |
最終ジャッジ日時 | 2024-04-14 07:20:02 |
合計ジャッジ時間 | 14,826 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 497 ms
69,700 KB |
testcase_01 | AC | 498 ms
69,492 KB |
testcase_02 | AC | 494 ms
69,664 KB |
testcase_03 | AC | 495 ms
69,504 KB |
testcase_04 | AC | 500 ms
69,628 KB |
testcase_05 | AC | 491 ms
67,352 KB |
コンパイルメッセージ
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)) }