結果

問題 No.264 じゃんけん
ユーザー da_louisda_louis
提出日時 2020-02-07 00:21:55
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 291 ms / 5,000 ms
コード長 253 bytes
コンパイル時間 10,912 ms
コンパイル使用メモリ 446,616 KB
実行使用メモリ 54,420 KB
最終ジャッジ日時 2023-10-25 22:50:37
合計ジャッジ時間 14,781 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 290 ms
54,396 KB
testcase_01 AC 290 ms
54,400 KB
testcase_02 AC 287 ms
54,396 KB
testcase_03 AC 289 ms
54,400 KB
testcase_04 AC 288 ms
54,400 KB
testcase_05 AC 291 ms
54,420 KB
testcase_06 AC 287 ms
54,392 KB
testcase_07 AC 288 ms
54,396 KB
testcase_08 AC 290 ms
54,400 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 -> "Lost"
    }

    println(answer)
}
0