結果
問題 |
No.88 次はどっちだ
|
ユーザー |
![]() |
提出日時 | 2019-09-27 09:19:40 |
言語 | Kotlin (2.1.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 10,897 ms |
コンパイル使用メモリ | 434,760 KB |
実行使用メモリ | 60,228 KB |
最終ジャッジ日時 | 2024-09-24 06:48:28 |
合計ジャッジ時間 | 15,328 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 4 |
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'arr' is never used fun main(arr:Array<String>) { ^
ソースコード
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) }