結果

問題 No.285 消費税2
ユーザー AoiroFukurouAoiroFukurou
提出日時 2015-12-19 21:12:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 6,994 ms
コンパイル使用メモリ 74,716 KB
実行使用メモリ 58,000 KB
最終ジャッジ日時 2023-10-17 12:48:18
合計ジャッジ時間 9,569 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
57,588 KB
testcase_01 AC 134 ms
55,560 KB
testcase_02 AC 132 ms
57,640 KB
testcase_03 AC 133 ms
58,000 KB
testcase_04 AC 135 ms
57,676 KB
testcase_05 AC 131 ms
57,544 KB
testcase_06 AC 133 ms
57,612 KB
testcase_07 AC 132 ms
57,360 KB
testcase_08 AC 133 ms
57,528 KB
testcase_09 AC 132 ms
57,828 KB
testcase_10 AC 137 ms
57,572 KB
testcase_11 AC 135 ms
57,604 KB
testcase_12 AC 131 ms
57,592 KB
testcase_13 AC 131 ms
57,560 KB
testcase_14 AC 131 ms
57,584 KB
testcase_15 AC 131 ms
57,648 KB
testcase_16 AC 133 ms
57,784 KB
testcase_17 AC 130 ms
57,704 KB
testcase_18 AC 131 ms
57,532 KB
testcase_19 AC 131 ms
57,600 KB
testcase_20 AC 132 ms
57,584 KB
testcase_21 AC 131 ms
57,588 KB
testcase_22 AC 130 ms
57,576 KB
testcase_23 AC 134 ms
57,644 KB
testcase_24 AC 132 ms
57,568 KB
testcase_25 AC 131 ms
57,792 KB
testcase_26 AC 130 ms
57,644 KB
testcase_27 AC 117 ms
56,388 KB
testcase_28 AC 130 ms
57,748 KB
testcase_29 AC 129 ms
57,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No_285 {
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	long D = sc.nextLong();
	sc.close();
	BigDecimal BD = new BigDecimal(D);
	BigDecimal ritsu = new BigDecimal("0.08");
	BigDecimal ritsu2 = BD.multiply(ritsu);
	BigDecimal Val = BD.add(ritsu2);
	System.out.println(Val);
}
}
0