結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 298 ms
57,524 KB
testcase_01 WA -
testcase_02 AC 292 ms
57,532 KB
testcase_03 AC 295 ms
57,512 KB
testcase_04 AC 292 ms
57,516 KB
testcase_05 AC 294 ms
57,520 KB
testcase_06 WA -
testcase_07 AC 287 ms
57,520 KB
testcase_08 AC 295 ms
57,520 KB
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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