結果

問題 No.285 消費税2
ユーザー shinwisteriashinwisteria
提出日時 2017-03-31 17:27:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 4,391 ms
コンパイル使用メモリ 73,416 KB
実行使用メモリ 56,256 KB
最終ジャッジ日時 2023-09-21 10:41:34
合計ジャッジ時間 8,826 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,744 KB
testcase_01 AC 116 ms
55,808 KB
testcase_02 AC 115 ms
55,980 KB
testcase_03 AC 117 ms
56,248 KB
testcase_04 AC 116 ms
56,060 KB
testcase_05 AC 116 ms
55,508 KB
testcase_06 AC 117 ms
56,088 KB
testcase_07 AC 114 ms
56,072 KB
testcase_08 AC 114 ms
55,900 KB
testcase_09 AC 115 ms
56,208 KB
testcase_10 AC 114 ms
56,244 KB
testcase_11 AC 115 ms
55,836 KB
testcase_12 AC 115 ms
56,256 KB
testcase_13 AC 115 ms
56,044 KB
testcase_14 AC 116 ms
56,208 KB
testcase_15 AC 121 ms
55,764 KB
testcase_16 AC 114 ms
53,420 KB
testcase_17 AC 115 ms
55,928 KB
testcase_18 AC 115 ms
56,152 KB
testcase_19 AC 122 ms
54,256 KB
testcase_20 AC 119 ms
55,780 KB
testcase_21 AC 119 ms
55,920 KB
testcase_22 AC 115 ms
55,768 KB
testcase_23 AC 115 ms
56,072 KB
testcase_24 AC 114 ms
55,896 KB
testcase_25 AC 114 ms
56,092 KB
testcase_26 AC 115 ms
55,800 KB
testcase_27 AC 115 ms
56,212 KB
testcase_28 AC 115 ms
55,972 KB
testcase_29 AC 115 ms
55,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigDecimal;
import java.util.Scanner;
public class Shohizei {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		BigDecimal D = new BigDecimal(s.nextLong());
		BigDecimal p = new BigDecimal("1.08");
		s.close();
		System.out.println(D.multiply(p).toString());

	}

}
0