結果

問題 No.169 何分かかるの!?
ユーザー javyjavy
提出日時 2015-11-28 01:57:46
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 276 ms / 1,000 ms
コード長 975 bytes
コンパイル時間 12,897 ms
コンパイル使用メモリ 413,628 KB
実行使用メモリ 50,696 KB
最終ジャッジ日時 2023-08-12 15:54:06
合計ジャッジ時間 20,172 ms
ジャッジサーバーID
(参考情報)
judge7 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 269 ms
50,200 KB
testcase_01 AC 268 ms
50,328 KB
testcase_02 AC 271 ms
50,208 KB
testcase_03 AC 265 ms
50,280 KB
testcase_04 AC 267 ms
50,468 KB
testcase_05 AC 270 ms
50,344 KB
testcase_06 AC 276 ms
50,292 KB
testcase_07 AC 271 ms
50,364 KB
testcase_08 AC 272 ms
50,696 KB
testcase_09 AC 275 ms
50,284 KB
testcase_10 AC 272 ms
50,324 KB
testcase_11 AC 273 ms
50,484 KB
testcase_12 AC 273 ms
50,328 KB
testcase_13 AC 266 ms
50,288 KB
testcase_14 AC 266 ms
50,348 KB
testcase_15 AC 264 ms
50,248 KB
testcase_16 AC 265 ms
50,300 KB
testcase_17 AC 266 ms
50,212 KB
testcase_18 AC 266 ms
50,164 KB
testcase_19 AC 274 ms
50,236 KB
testcase_20 AC 273 ms
50,456 KB
testcase_21 AC 273 ms
50,268 KB
testcase_22 AC 268 ms
50,364 KB
testcase_23 AC 269 ms
50,304 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
    }

    val percent = readLineLong()
    val value = readLineLong()
    println(value*100/(100-percent))
}
0