結果

問題 No.56 消費税
ユーザー da_louisda_louis
提出日時 2020-02-07 00:47:53
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 324 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 12,125 ms
コンパイル使用メモリ 433,388 KB
実行使用メモリ 54,432 KB
最終ジャッジ日時 2023-10-25 22:53:52
合計ジャッジ時間 22,067 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 319 ms
54,428 KB
testcase_01 AC 315 ms
54,416 KB
testcase_02 AC 313 ms
54,428 KB
testcase_03 AC 322 ms
54,420 KB
testcase_04 AC 316 ms
54,420 KB
testcase_05 AC 316 ms
54,420 KB
testcase_06 AC 314 ms
54,416 KB
testcase_07 AC 314 ms
54,424 KB
testcase_08 AC 313 ms
54,424 KB
testcase_09 AC 314 ms
54,428 KB
testcase_10 AC 317 ms
54,408 KB
testcase_11 AC 313 ms
54,420 KB
testcase_12 AC 314 ms
54,428 KB
testcase_13 AC 316 ms
54,432 KB
testcase_14 AC 314 ms
54,432 KB
testcase_15 AC 312 ms
54,428 KB
testcase_16 AC 316 ms
54,424 KB
testcase_17 AC 317 ms
54,432 KB
testcase_18 AC 313 ms
54,428 KB
testcase_19 AC 318 ms
54,428 KB
testcase_20 AC 312 ms
54,428 KB
testcase_21 AC 319 ms
54,432 KB
testcase_22 AC 320 ms
54,432 KB
testcase_23 AC 318 ms
54,424 KB
testcase_24 AC 315 ms
54,428 KB
testcase_25 AC 324 ms
54,412 KB
testcase_26 AC 319 ms
54,416 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    p111()
}

fun p111() {
    val (d, p) = readLine()!!.split(' ').map { it.toDouble() }

    val answer = Math.floor(d * (100 + p) / 100).toInt()

    println(answer)
}
0