結果

問題 No.285 消費税2
ユーザー R_FR_F
提出日時 2017-12-14 10:22:48
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 341 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 11,797 ms
コンパイル使用メモリ 412,332 KB
実行使用メモリ 54,488 KB
最終ジャッジ日時 2023-08-12 21:37:48
合計ジャッジ時間 22,662 ms
ジャッジサーバーID
(参考情報)
judge8 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 318 ms
54,088 KB
testcase_01 AC 320 ms
53,644 KB
testcase_02 AC 327 ms
53,864 KB
testcase_03 AC 325 ms
53,860 KB
testcase_04 AC 328 ms
53,872 KB
testcase_05 AC 324 ms
53,988 KB
testcase_06 AC 334 ms
53,700 KB
testcase_07 AC 320 ms
53,864 KB
testcase_08 AC 319 ms
54,144 KB
testcase_09 AC 329 ms
53,704 KB
testcase_10 AC 335 ms
54,160 KB
testcase_11 AC 332 ms
54,244 KB
testcase_12 AC 334 ms
53,864 KB
testcase_13 AC 338 ms
54,488 KB
testcase_14 AC 330 ms
53,960 KB
testcase_15 AC 328 ms
53,684 KB
testcase_16 AC 330 ms
53,868 KB
testcase_17 AC 325 ms
53,964 KB
testcase_18 AC 324 ms
53,800 KB
testcase_19 AC 322 ms
53,752 KB
testcase_20 AC 325 ms
53,868 KB
testcase_21 AC 325 ms
53,644 KB
testcase_22 AC 322 ms
53,848 KB
testcase_23 AC 325 ms
53,632 KB
testcase_24 AC 320 ms
53,688 KB
testcase_25 AC 332 ms
53,728 KB
testcase_26 AC 341 ms
53,772 KB
testcase_27 AC 330 ms
53,632 KB
testcase_28 AC 323 ms
53,764 KB
testcase_29 AC 330 ms
53,840 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:13:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

import java.util.Scanner
import java.math.BigDecimal

class No285() {
	var input = Scanner(System. `in`).nextBigDecimal()

	fun taxPrint() {
		var tax = BigDecimal.valueOf(0.08).multiply(input);
		println(input + tax)
	}
}

fun main(args: Array<String>) {
	var no285 = No285()
	no285.taxPrint()
}
0