結果

問題 No.264 じゃんけん
ユーザー face4face4
提出日時 2019-12-07 18:54:09
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 289 ms / 5,000 ms
コード長 228 bytes
コンパイル時間 11,934 ms
コンパイル使用メモリ 411,532 KB
実行使用メモリ 53,164 KB
最終ジャッジ日時 2023-08-26 23:25:35
合計ジャッジ時間 15,600 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 284 ms
53,164 KB
testcase_01 AC 282 ms
52,540 KB
testcase_02 AC 287 ms
52,568 KB
testcase_03 AC 289 ms
52,756 KB
testcase_04 AC 287 ms
52,640 KB
testcase_05 AC 289 ms
52,844 KB
testcase_06 AC 286 ms
52,664 KB
testcase_07 AC 288 ms
52,548 KB
testcase_08 AC 281 ms
52,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main(){
    val a = readLine()!!.split(' ')
    val n : Int = a[0].toInt()
    val k : Int = a[1].toInt()
    val ret = when{
        n==k -> "Drew"
        (n+1)%3==k -> "Won"
        else -> "Lost"
    }
    println(ret)
}
0