結果

問題 No.264 じゃんけん
ユーザー javyjavy
提出日時 2015-11-02 21:43:59
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 321 ms / 5,000 ms
コード長 344 bytes
コンパイル時間 13,580 ms
コンパイル使用メモリ 425,828 KB
実行使用メモリ 51,028 KB
最終ジャッジ日時 2024-04-30 02:58:58
合計ジャッジ時間 14,591 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 321 ms
51,028 KB
testcase_01 AC 309 ms
50,944 KB
testcase_02 AC 309 ms
50,832 KB
testcase_03 AC 311 ms
50,712 KB
testcase_04 AC 311 ms
50,812 KB
testcase_05 AC 310 ms
50,808 KB
testcase_06 AC 307 ms
50,780 KB
testcase_07 AC 308 ms
50,892 KB
testcase_08 AC 301 ms
50,736 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

/**
 * Created by hichikawa on 2015/11/01.
 */

fun main(args: Array<String>) {
    val str = readLine() as String
    val strArray = str.split(" ")
    val numA = strArray[0].toInt()
    val numB = strArray[1].toInt()
    when ((numB+3-numA) % 3) {
        0 -> println("Drew")
        1 -> println("Won")
        2 -> println("Lost")
    }
}
0