結果
問題 |
No.88 次はどっちだ
|
ユーザー |
![]() |
提出日時 | 2019-09-27 09:19:06 |
言語 | Kotlin (2.1.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 12,413 ms |
コンパイル使用メモリ | 435,232 KB |
実行使用メモリ | 60,312 KB |
最終ジャッジ日時 | 2024-09-24 06:46:40 |
合計ジャッジ時間 | 15,099 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 7 |
コンパイルメッセージ
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) gote else sente println(ans) }