結果

問題 No.7 プライムナンバーゲーム
ユーザー javyjavy
提出日時 2015-12-07 04:22:50
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 1,307 bytes
コンパイル時間 12,669 ms
コンパイル使用メモリ 428,084 KB
実行使用メモリ 54,440 KB
最終ジャッジ日時 2024-04-30 12:06:41
合計ジャッジ時間 18,117 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 298 ms
54,216 KB
testcase_01 AC 290 ms
54,048 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 294 ms
54,180 KB
testcase_06 WA -
testcase_07 AC 299 ms
54,152 KB
testcase_08 WA -
testcase_09 AC 299 ms
54,236 KB
testcase_10 AC 304 ms
54,276 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 293 ms
54,216 KB
testcase_16 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

package Yukicoder

fun main(args: Array<String>) {
    fun readLineLongArray(): List<Long> {
        val str = readLine() as String
        val arrStr = str.split(" ")
        val ret = arrStr.map { it.toLong() }
        return ret
    }

    fun readLineLong(): Long {
        val str = readLine() as String
        return str.toLong()
    }

    fun readLineInt(): Int {
        val str = readLine() as String
        return str.toInt()
    }

    fun readLineIntArray() : List<Int> {
        val str = readLine() as String
        val arrStr = str.split(" ")
        val ret = arrStr.map { it.toInt() }
        return ret
    }

    fun readLineDoubleArray(): List<Double> {
        val str = readLine() as String
        val arrStr = str.split(" ")
        val ret = arrStr.map { it.toDouble() }
        return ret
    }

    fun readLineDouble() : Double {
        val str = readLine() as String
        return str.toDouble()
    }

    fun readLineString() : String {
        return readLine() as String
    }

//    fun readLineStringArray(): List<String> {
//        val str = readLine() as String
//        val arrStr = str.split(" ")
//        return arrStr
//    }
    val input = readLineInt()
    if (((input+1)/2) % 2 == 0) {
        println("Lose")
    } else {
        println("Win")
    }
}
0