結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2019-09-27 09:21:21 |
言語 | Kotlin (2.1.0) |
結果 |
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 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
コンパイルメッセージ
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) }