結果

問題 No.285 消費税2
ユーザー javyjavy
提出日時 2015-12-07 04:46:29
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 319 ms / 2,000 ms
コード長 1,303 bytes
コンパイル時間 10,843 ms
コンパイル使用メモリ 424,208 KB
実行使用メモリ 55,304 KB
最終ジャッジ日時 2023-08-12 17:06:05
合計ジャッジ時間 21,405 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 283 ms
53,368 KB
testcase_01 AC 283 ms
53,380 KB
testcase_02 AC 278 ms
53,492 KB
testcase_03 AC 285 ms
53,420 KB
testcase_04 AC 286 ms
53,280 KB
testcase_05 AC 291 ms
53,320 KB
testcase_06 AC 305 ms
53,360 KB
testcase_07 AC 297 ms
53,628 KB
testcase_08 AC 295 ms
53,400 KB
testcase_09 AC 297 ms
53,756 KB
testcase_10 AC 290 ms
53,488 KB
testcase_11 AC 286 ms
53,320 KB
testcase_12 AC 289 ms
53,452 KB
testcase_13 AC 287 ms
53,340 KB
testcase_14 AC 302 ms
53,424 KB
testcase_15 AC 298 ms
53,776 KB
testcase_16 AC 296 ms
53,364 KB
testcase_17 AC 291 ms
53,328 KB
testcase_18 AC 295 ms
53,412 KB
testcase_19 AC 283 ms
53,496 KB
testcase_20 AC 287 ms
53,628 KB
testcase_21 AC 293 ms
53,564 KB
testcase_22 AC 303 ms
53,356 KB
testcase_23 AC 298 ms
55,304 KB
testcase_24 AC 310 ms
53,492 KB
testcase_25 AC 294 ms
53,832 KB
testcase_26 AC 319 ms
53,448 KB
testcase_27 AC 282 ms
53,332 KB
testcase_28 AC 286 ms
53,676 KB
testcase_29 AC 295 ms
53,496 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 = readLineLong()*108
    println((input/100).toString() + "." + java.lang.String.format("%02d",(input%100)))


}
0