結果

問題 No.8 N言っちゃダメゲーム
ユーザー 💕💖💞💕💖💞
提出日時 2017-04-08 16:52:02
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 302 ms / 5,000 ms
コード長 240 bytes
コンパイル時間 11,798 ms
コンパイル使用メモリ 414,012 KB
実行使用メモリ 55,008 KB
最終ジャッジ日時 2023-08-12 17:46:27
合計ジャッジ時間 16,900 ms
ジャッジサーバーID
(参考情報)
judge11 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 288 ms
52,944 KB
testcase_01 AC 289 ms
52,820 KB
testcase_02 AC 290 ms
53,356 KB
testcase_03 AC 300 ms
53,144 KB
testcase_04 AC 302 ms
53,328 KB
testcase_05 AC 301 ms
53,012 KB
testcase_06 AC 300 ms
53,104 KB
testcase_07 AC 298 ms
52,840 KB
testcase_08 AC 302 ms
53,072 KB
testcase_09 AC 301 ms
52,824 KB
testcase_10 AC 298 ms
55,008 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) { 
         ^

ソースコード

diff #

fun main(args: Array<String>) { 
  (1..readLine()!!.toInt() ).map { 
    readLine()!!.split(" ").map { x -> x.toInt() }
  }.map { x -> 
    val (n, k) = x
    if( (n-1)%(k+1) == 0 )
      println("Lose")
    else
      println("Win")
  }
}
0