結果

問題 No.56 消費税
ユーザー rutilicusrutilicus
提出日時 2020-08-30 21:29:13
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 299 ms / 5,000 ms
コード長 242 bytes
コンパイル時間 11,075 ms
コンパイル使用メモリ 435,736 KB
実行使用メモリ 56,968 KB
最終ジャッジ日時 2024-04-27 13:21:14
合計ジャッジ時間 19,672 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 293 ms
56,908 KB
testcase_01 AC 295 ms
56,968 KB
testcase_02 AC 296 ms
56,860 KB
testcase_03 AC 294 ms
56,928 KB
testcase_04 AC 292 ms
56,836 KB
testcase_05 AC 296 ms
56,872 KB
testcase_06 AC 299 ms
56,824 KB
testcase_07 AC 293 ms
56,952 KB
testcase_08 AC 297 ms
56,896 KB
testcase_09 AC 296 ms
56,820 KB
testcase_10 AC 297 ms
56,840 KB
testcase_11 AC 291 ms
56,936 KB
testcase_12 AC 291 ms
56,876 KB
testcase_13 AC 291 ms
56,880 KB
testcase_14 AC 287 ms
56,828 KB
testcase_15 AC 291 ms
56,920 KB
testcase_16 AC 291 ms
56,876 KB
testcase_17 AC 291 ms
56,928 KB
testcase_18 AC 297 ms
56,676 KB
testcase_19 AC 291 ms
56,868 KB
testcase_20 AC 295 ms
56,800 KB
testcase_21 AC 298 ms
56,908 KB
testcase_22 AC 297 ms
56,820 KB
testcase_23 AC 292 ms
56,956 KB
testcase_24 AC 290 ms
56,968 KB
testcase_25 AC 288 ms
56,952 KB
testcase_26 AC 296 ms
56,820 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:13: warning: 'appendln(Int): kotlin.text.StringBuilder /* = java.lang.StringBuilder */' is deprecated. Use appendLine instead. Note that the new method always appends the line feed character '\n' regardless of the system line separator.
    builder.appendln(d + (d * p / 100))
            ^

ソースコード

diff #

fun main() {
    val builder = StringBuilder()

    val (d, p) = readInputLine().split(" ").map { it.toInt() }

    builder.appendln(d + (d * p / 100))

    print(builder.toString())
}

fun readInputLine(): String {
    return readLine()!!
}
0