結果

問題 No.56 消費税
ユーザー javyjavy
提出日時 2015-11-02 23:04:19
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 300 ms / 5,000 ms
コード長 446 bytes
コンパイル時間 12,531 ms
コンパイル使用メモリ 411,052 KB
実行使用メモリ 53,284 KB
最終ジャッジ日時 2023-08-12 13:17:53
合計ジャッジ時間 21,628 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 286 ms
52,980 KB
testcase_01 AC 289 ms
52,960 KB
testcase_02 AC 287 ms
53,260 KB
testcase_03 AC 288 ms
52,988 KB
testcase_04 AC 287 ms
52,968 KB
testcase_05 AC 287 ms
53,004 KB
testcase_06 AC 287 ms
52,880 KB
testcase_07 AC 290 ms
53,148 KB
testcase_08 AC 292 ms
52,928 KB
testcase_09 AC 292 ms
52,916 KB
testcase_10 AC 289 ms
52,920 KB
testcase_11 AC 292 ms
52,904 KB
testcase_12 AC 290 ms
53,196 KB
testcase_13 AC 286 ms
52,988 KB
testcase_14 AC 290 ms
52,932 KB
testcase_15 AC 290 ms
52,908 KB
testcase_16 AC 286 ms
52,948 KB
testcase_17 AC 289 ms
52,920 KB
testcase_18 AC 289 ms
53,284 KB
testcase_19 AC 294 ms
52,980 KB
testcase_20 AC 297 ms
52,964 KB
testcase_21 AC 292 ms
52,988 KB
testcase_22 AC 290 ms
52,936 KB
testcase_23 AC 290 ms
52,876 KB
testcase_24 AC 294 ms
52,924 KB
testcase_25 AC 297 ms
52,860 KB
testcase_26 AC 300 ms
53,088 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/02.
 */
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
    }
    val inputNums = readLineLongArray()
    val basePrice = inputNums[0]
    val shohiPercent = 100 + inputNums[1]
    println(basePrice * shohiPercent / 100)
}
0