結果

問題 No.264 じゃんけん
ユーザー javy
提出日時 2015-11-02 21:43:59
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 312 ms / 5,000 ms
コード長 344 bytes
コンパイル時間 10,337 ms
コンパイル使用メモリ 425,396 KB
実行使用メモリ 56,876 KB
最終ジャッジ日時 2024-11-19 14:47:20
合計ジャッジ時間 13,921 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
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