結果

問題 No.264 じゃんけん
コンテスト
ユーザー da_louis
提出日時 2020-02-07 00:18:26
言語 Kotlin
(2.3.20)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
WA  
実行時間 -
コード長 253 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 7,915 ms
コンパイル使用メモリ 459,864 KB
実行使用メモリ 54,332 KB
最終ジャッジ日時 2026-04-12 11:35:57
合計ジャッジ時間 10,628 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fun main(args: Array<String>) {
    p699()
}

fun p699() {
    val (n, k) = readLine()!!.split(' ').map { it.toInt() }

    val answer = when ((n - k + 3) % 3) {
        0 -> "Drew"
        2 -> "Won"
        else -> "Lose"
    }

    println(answer)
}
0