提出 #4889282


ソースコード 拡げる

fun main(args: Array<String>) {
    val a = readLine()!!.toInt()
    val b = readLine()!!.toInt()
    val c = readLine()!!.toInt()
    val d = readLine()!!.toInt()
    val e = readLine()!!.toInt()
    val k = readLine()!!.toInt()

    println(if (e-a>k) ":(" else "Yay!")
}

提出情報

提出日時
問題 A - Five Antennas
ユーザ oqrusk
言語 Kotlin (1.0.0)
得点 100
コード長 282 Byte
結果 AC
実行時間 198 ms
メモリ 29988 KiB

コンパイルエラー

Main.kt:3:9: warning: variable 'b' is never used
    val b = readLine()!!.toInt()
        ^
Main.kt:4:9: warning: variable 'c' is never used
    val c = readLine()!!.toInt()
        ^
Main.kt:5:9: warning: variable 'd' is never used
    val d = readLine()!!.toInt()
        ^

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 9
セット名 テストケース
Sample s1.txt, s2.txt
All in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, s1.txt, s2.txt
ケース名 結果 実行時間 メモリ
in1.txt AC 197 ms 29988 KiB
in2.txt AC 196 ms 29636 KiB
in3.txt AC 196 ms 27708 KiB
in4.txt AC 198 ms 29816 KiB
in5.txt AC 197 ms 27748 KiB
in6.txt AC 197 ms 29708 KiB
in7.txt AC 197 ms 29724 KiB
s1.txt AC 197 ms 29756 KiB
s2.txt AC 196 ms 29792 KiB