結果

問題 No.218 経験値1.5倍
ユーザー javyjavy
提出日時 2015-11-28 11:19:45
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 296 ms / 2,000 ms
コード長 1,260 bytes
コンパイル時間 12,021 ms
コンパイル使用メモリ 431,052 KB
実行使用メモリ 54,352 KB
最終ジャッジ日時 2024-04-30 11:31:42
合計ジャッジ時間 22,503 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 289 ms
54,236 KB
testcase_01 AC 290 ms
54,124 KB
testcase_02 AC 289 ms
54,260 KB
testcase_03 AC 288 ms
54,240 KB
testcase_04 AC 294 ms
54,140 KB
testcase_05 AC 291 ms
54,276 KB
testcase_06 AC 290 ms
54,124 KB
testcase_07 AC 293 ms
54,248 KB
testcase_08 AC 290 ms
54,168 KB
testcase_09 AC 290 ms
54,132 KB
testcase_10 AC 292 ms
54,272 KB
testcase_11 AC 290 ms
54,352 KB
testcase_12 AC 290 ms
54,236 KB
testcase_13 AC 291 ms
54,148 KB
testcase_14 AC 293 ms
54,248 KB
testcase_15 AC 292 ms
54,236 KB
testcase_16 AC 289 ms
54,124 KB
testcase_17 AC 290 ms
54,244 KB
testcase_18 AC 292 ms
54,240 KB
testcase_19 AC 294 ms
54,228 KB
testcase_20 AC 296 ms
54,232 KB
testcase_21 AC 292 ms
54,136 KB
testcase_22 AC 295 ms
54,248 KB
testcase_23 AC 293 ms
54,244 KB
testcase_24 AC 292 ms
54,136 KB
testcase_25 AC 295 ms
54,116 KB
testcase_26 AC 289 ms
54,212 KB
testcase_27 AC 296 ms
54,244 KB
testcase_28 AC 290 ms
54,168 KB
testcase_29 AC 290 ms
54,228 KB
testcase_30 AC 289 ms
54,224 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

package Yukicoder

/**
 * Created by hichikawa on 2015/11/12.
 */
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()
    }

    val a = readLineInt()
    val b = readLineInt()
    val c =readLineInt()
    val ansA = Math.ceil(a.toDouble()/b).toLong() * 2
    val ansB = Math.ceil(a.toDouble()/c).toLong() * 3
    if (ansA >= ansB) {
        println("YES")
    } else {
        println("NO")
    }

}
0