結果

問題 No.56 消費税
ユーザー javyjavy
提出日時 2015-11-02 23:04:19
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 333 ms / 5,000 ms
コード長 446 bytes
コンパイル時間 11,815 ms
コンパイル使用メモリ 423,824 KB
実行使用メモリ 51,784 KB
最終ジャッジ日時 2024-04-30 03:08:05
合計ジャッジ時間 21,296 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 318 ms
51,716 KB
testcase_01 AC 331 ms
51,640 KB
testcase_02 AC 330 ms
51,616 KB
testcase_03 AC 329 ms
51,528 KB
testcase_04 AC 323 ms
51,572 KB
testcase_05 AC 320 ms
51,660 KB
testcase_06 AC 315 ms
51,648 KB
testcase_07 AC 316 ms
51,704 KB
testcase_08 AC 330 ms
51,648 KB
testcase_09 AC 321 ms
51,536 KB
testcase_10 AC 331 ms
51,636 KB
testcase_11 AC 332 ms
51,636 KB
testcase_12 AC 332 ms
51,672 KB
testcase_13 AC 321 ms
51,676 KB
testcase_14 AC 316 ms
51,628 KB
testcase_15 AC 315 ms
51,588 KB
testcase_16 AC 320 ms
51,712 KB
testcase_17 AC 333 ms
51,708 KB
testcase_18 AC 320 ms
51,680 KB
testcase_19 AC 318 ms
51,784 KB
testcase_20 AC 316 ms
51,644 KB
testcase_21 AC 319 ms
51,552 KB
testcase_22 AC 320 ms
51,552 KB
testcase_23 AC 315 ms
51,640 KB
testcase_24 AC 321 ms
51,580 KB
testcase_25 AC 317 ms
51,772 KB
testcase_26 AC 323 ms
51,636 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