結果

問題 No.88 次はどっちだ
ユーザー バカらっくバカらっく
提出日時 2019-09-27 09:19:06
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 10,961 ms
コンパイル使用メモリ 429,164 KB
実行使用メモリ 57,552 KB
最終ジャッジ日時 2023-10-24 15:59:40
合計ジャッジ時間 15,284 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 294 ms
57,532 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 299 ms
57,552 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 296 ms
57,528 KB
testcase_10 AC 295 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) gote else sente
    println(ans)
}

0