結果

問題 No.285 消費税2
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-14 20:50:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 4,811 ms
コンパイル使用メモリ 74,824 KB
実行使用メモリ 54,596 KB
最終ジャッジ日時 2024-04-17 19:39:38
合計ジャッジ時間 7,545 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
54,348 KB
testcase_01 AC 122 ms
53,856 KB
testcase_02 AC 128 ms
53,636 KB
testcase_03 AC 123 ms
54,240 KB
testcase_04 AC 118 ms
53,388 KB
testcase_05 AC 117 ms
53,648 KB
testcase_06 AC 116 ms
53,496 KB
testcase_07 AC 112 ms
53,636 KB
testcase_08 AC 128 ms
54,568 KB
testcase_09 AC 114 ms
53,580 KB
testcase_10 AC 125 ms
54,340 KB
testcase_11 AC 126 ms
54,596 KB
testcase_12 AC 131 ms
54,104 KB
testcase_13 AC 125 ms
54,168 KB
testcase_14 AC 115 ms
53,700 KB
testcase_15 AC 121 ms
53,932 KB
testcase_16 AC 134 ms
54,440 KB
testcase_17 AC 130 ms
54,400 KB
testcase_18 AC 130 ms
54,312 KB
testcase_19 AC 135 ms
54,544 KB
testcase_20 AC 133 ms
53,996 KB
testcase_21 AC 117 ms
53,688 KB
testcase_22 AC 128 ms
54,380 KB
testcase_23 AC 134 ms
54,488 KB
testcase_24 AC 127 ms
53,388 KB
testcase_25 AC 125 ms
54,240 KB
testcase_26 AC 133 ms
54,496 KB
testcase_27 AC 118 ms
53,880 KB
testcase_28 AC 125 ms
54,368 KB
testcase_29 AC 124 ms
53,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.text.DecimalFormat;

public class Exercise82{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    double price = sc.nextDouble() * 1.08;

    DecimalFormat df = new DecimalFormat("############.##");

    System.out.println(df.format(price));
  }
}
0