結果

問題 No.88 次はどっちだ
ユーザー 💕💖💞💕💖💞
提出日時 2017-07-02 14:58:40
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 334 ms / 5,000 ms
コード長 348 bytes
コンパイル時間 12,454 ms
コンパイル使用メモリ 441,052 KB
実行使用メモリ 57,284 KB
最終ジャッジ日時 2024-04-30 15:21:29
合計ジャッジ時間 17,140 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 328 ms
57,188 KB
testcase_01 AC 328 ms
57,272 KB
testcase_02 AC 334 ms
57,284 KB
testcase_03 AC 327 ms
57,184 KB
testcase_04 AC 330 ms
57,252 KB
testcase_05 AC 331 ms
57,272 KB
testcase_06 AC 331 ms
57,208 KB
testcase_07 AC 333 ms
57,224 KB
testcase_08 AC 333 ms
57,176 KB
testcase_09 AC 328 ms
57,184 KB
testcase_10 AC 329 ms
57,228 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:11: warning: parameter 'args' is never used
fun main( args : Array<String> ) {
          ^

ソースコード

diff #

fun main( args : Array<String> ) {
  val m = mapOf("oda" to "yukiko", "yukiko" to "oda")
  val start = readLine()!!
  (1..8).map {
    readLine()!!.toList()
  }.flatMap { 
    it 
  }.filter { 
    it == 'w' || it == 'b'
  }.size
  .let {
    when {
      it%2 == 0 -> start
      else      -> m[start]
    }.let {  
      println( it )
    }
  }
}
0