結果

問題 No.56 消費税
ユーザー show258show258
提出日時 2017-04-09 20:10:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 466 bytes
コンパイル時間 3,452 ms
コンパイル使用メモリ 72,028 KB
実行使用メモリ 56,204 KB
最終ジャッジ日時 2023-09-25 03:58:28
合計ジャッジ時間 8,102 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,936 KB
testcase_01 AC 126 ms
56,000 KB
testcase_02 AC 125 ms
55,944 KB
testcase_03 AC 124 ms
55,680 KB
testcase_04 AC 124 ms
55,680 KB
testcase_05 AC 123 ms
56,044 KB
testcase_06 AC 123 ms
55,456 KB
testcase_07 AC 123 ms
55,648 KB
testcase_08 AC 127 ms
55,800 KB
testcase_09 AC 123 ms
55,720 KB
testcase_10 AC 121 ms
55,648 KB
testcase_11 AC 121 ms
55,648 KB
testcase_12 AC 123 ms
56,204 KB
testcase_13 AC 124 ms
55,812 KB
testcase_14 AC 126 ms
55,704 KB
testcase_15 AC 124 ms
55,976 KB
testcase_16 AC 123 ms
53,648 KB
testcase_17 AC 124 ms
55,796 KB
testcase_18 AC 124 ms
55,512 KB
testcase_19 AC 123 ms
55,808 KB
testcase_20 AC 124 ms
55,972 KB
testcase_21 AC 124 ms
55,944 KB
testcase_22 AC 124 ms
54,088 KB
testcase_23 AC 125 ms
55,684 KB
testcase_24 AC 125 ms
55,492 KB
testcase_25 AC 126 ms
55,820 KB
testcase_26 AC 126 ms
56,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No56 {
  public static void main(String[] args) {
    // 標準入力から読み込む際に、Scannerオブジェクトを使う。
    Scanner sc = new Scanner(System.in);

    // ユキコダ Dを読み込む
    int d = sc.nextInt();
    // 消費税率 P%を読み込む
    int p = sc.nextInt();

    sc.close(); // 標準入力をクローズ

    //支払総額を表示
    System.out.println( d + d*p/100 );

  }
}
0