結果

問題 No.285 消費税2
ユーザー mits58mits58
提出日時 2016-07-02 22:02:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 3,741 ms
コンパイル使用メモリ 74,964 KB
実行使用メモリ 54,732 KB
最終ジャッジ日時 2024-04-20 06:13:48
合計ジャッジ時間 6,797 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
53,940 KB
testcase_01 AC 120 ms
54,452 KB
testcase_02 AC 128 ms
54,364 KB
testcase_03 AC 126 ms
54,176 KB
testcase_04 AC 113 ms
53,532 KB
testcase_05 AC 124 ms
54,316 KB
testcase_06 AC 132 ms
54,504 KB
testcase_07 AC 130 ms
54,464 KB
testcase_08 AC 120 ms
54,440 KB
testcase_09 AC 113 ms
53,804 KB
testcase_10 AC 125 ms
54,488 KB
testcase_11 AC 124 ms
54,412 KB
testcase_12 AC 116 ms
53,836 KB
testcase_13 AC 117 ms
54,224 KB
testcase_14 AC 121 ms
54,012 KB
testcase_15 AC 119 ms
54,236 KB
testcase_16 AC 121 ms
54,492 KB
testcase_17 AC 111 ms
53,504 KB
testcase_18 AC 132 ms
54,396 KB
testcase_19 AC 123 ms
54,452 KB
testcase_20 AC 109 ms
53,892 KB
testcase_21 AC 109 ms
53,472 KB
testcase_22 AC 123 ms
54,732 KB
testcase_23 AC 123 ms
54,420 KB
testcase_24 AC 120 ms
54,480 KB
testcase_25 AC 123 ms
54,316 KB
testcase_26 AC 125 ms
54,456 KB
testcase_27 AC 121 ms
54,484 KB
testcase_28 AC 112 ms
53,528 KB
testcase_29 AC 111 ms
53,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			BigDecimal d=sc.nextBigDecimal();
			d=d.multiply(BigDecimal.valueOf(1.08));
			System.out.println(d.toPlainString());
		}
	}
}
0