結果

問題 No.56 消費税
ユーザー mustonmuston
提出日時 2016-05-19 16:34:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 410 bytes
コンパイル時間 2,141 ms
コンパイル使用メモリ 74,536 KB
実行使用メモリ 41,564 KB
最終ジャッジ日時 2024-04-16 01:23:43
合計ジャッジ時間 6,471 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
41,292 KB
testcase_01 AC 127 ms
41,256 KB
testcase_02 AC 125 ms
41,088 KB
testcase_03 WA -
testcase_04 AC 114 ms
40,356 KB
testcase_05 AC 128 ms
41,476 KB
testcase_06 AC 134 ms
41,092 KB
testcase_07 AC 139 ms
41,368 KB
testcase_08 AC 138 ms
41,184 KB
testcase_09 AC 137 ms
41,460 KB
testcase_10 AC 132 ms
41,488 KB
testcase_11 AC 135 ms
40,972 KB
testcase_12 AC 132 ms
41,500 KB
testcase_13 AC 135 ms
41,236 KB
testcase_14 AC 128 ms
41,324 KB
testcase_15 AC 128 ms
41,200 KB
testcase_16 AC 118 ms
40,948 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
/*yukicoder No56 消費税*/
class No56{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    double d = scan.nextInt();  //買いたいものの金額
    double p = scan.nextInt();  //消費税
    //消費税をかけて実際の金額を出す
    double amount = d*(1+p/100);
    //実際の金額を出力
    System.out.println((int)amount);
  }
}
0