結果

問題 No.264 じゃんけん
ユーザー da_louisda_louis
提出日時 2020-02-07 00:18:26
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 12,342 ms
コンパイル使用メモリ 450,504 KB
実行使用メモリ 54,600 KB
最終ジャッジ日時 2023-10-25 22:50:21
合計ジャッジ時間 15,997 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 316 ms
54,468 KB
testcase_01 AC 318 ms
54,468 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 317 ms
54,484 KB
testcase_05 AC 315 ms
54,484 KB
testcase_06 AC 307 ms
54,472 KB
testcase_07 WA -
testcase_08 AC 304 ms
54,480 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

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