結果

問題 No.88 次はどっちだ
ユーザー バカらっくバカらっく
提出日時 2019-09-27 09:21:21
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 311 ms / 5,000 ms
コード長 285 bytes
コンパイル時間 11,176 ms
コンパイル使用メモリ 438,476 KB
実行使用メモリ 60,304 KB
最終ジャッジ日時 2024-09-24 06:48:49
合計ジャッジ時間 14,623 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 306 ms
60,172 KB
testcase_01 AC 301 ms
60,088 KB
testcase_02 AC 306 ms
60,048 KB
testcase_03 AC 305 ms
60,132 KB
testcase_04 AC 303 ms
60,052 KB
testcase_05 AC 307 ms
60,048 KB
testcase_06 AC 309 ms
60,304 KB
testcase_07 AC 311 ms
60,044 KB
testcase_08 AC 308 ms
60,024 KB
testcase_09 AC 308 ms
60,064 KB
testcase_10 AC 307 ms
60,156 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