結果

問題 No.88 次はどっちだ
ユーザー バカらっくバカらっく
提出日時 2019-09-27 09:21:21
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 298 ms / 5,000 ms
コード長 285 bytes
コンパイル時間 13,560 ms
コンパイル使用メモリ 449,124 KB
実行使用メモリ 57,540 KB
最終ジャッジ日時 2023-10-24 16:00:42
合計ジャッジ時間 15,064 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 295 ms
57,528 KB
testcase_01 AC 297 ms
57,540 KB
testcase_02 AC 293 ms
57,516 KB
testcase_03 AC 293 ms
57,508 KB
testcase_04 AC 291 ms
57,520 KB
testcase_05 AC 288 ms
57,508 KB
testcase_06 AC 296 ms
57,528 KB
testcase_07 AC 292 ms
57,520 KB
testcase_08 AC 291 ms
57,504 KB
testcase_09 AC 294 ms
57,528 KB
testcase_10 AC 298 ms
57,536 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'arr' is never used
fun main(arr:Array<String>) {
         ^

ソースコード

diff #

fun main(arr:Array<String>) {
    val players = listOf("oda","yukiko")
    val sente = readLine()!!
    val gote = players.findLast { it != sente }!!
    val cnt  =(1..8).map { readLine()!!.count { it != '.' }}.sum()

    val ans = if(cnt % 2 == 0) sente else gote
    println(ans)
}

0