結果

問題 No.56 消費税
ユーザー N KN K
提出日時 2021-04-21 15:56:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 307 bytes
コンパイル時間 2,489 ms
コンパイル使用メモリ 71,328 KB
実行使用メモリ 56,072 KB
最終ジャッジ日時 2023-09-17 09:37:45
合計ジャッジ時間 6,493 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,592 KB
testcase_01 AC 123 ms
55,696 KB
testcase_02 AC 123 ms
55,564 KB
testcase_03 AC 125 ms
55,556 KB
testcase_04 AC 124 ms
55,552 KB
testcase_05 AC 123 ms
55,376 KB
testcase_06 AC 123 ms
56,072 KB
testcase_07 AC 122 ms
55,380 KB
testcase_08 AC 123 ms
55,896 KB
testcase_09 AC 124 ms
55,828 KB
testcase_10 AC 124 ms
55,824 KB
testcase_11 AC 125 ms
55,732 KB
testcase_12 AC 123 ms
55,852 KB
testcase_13 AC 123 ms
55,560 KB
testcase_14 AC 124 ms
55,592 KB
testcase_15 AC 122 ms
56,040 KB
testcase_16 AC 122 ms
55,680 KB
testcase_17 AC 124 ms
55,616 KB
testcase_18 AC 122 ms
55,620 KB
testcase_19 AC 124 ms
55,556 KB
testcase_20 AC 123 ms
55,660 KB
testcase_21 AC 121 ms
55,332 KB
testcase_22 AC 125 ms
55,652 KB
testcase_23 AC 122 ms
55,628 KB
testcase_24 AC 124 ms
55,560 KB
testcase_25 AC 124 ms
55,748 KB
testcase_26 AC 122 ms
55,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
    public static void main(String[] arg){
        Scanner scan = new Scanner(System.in);
        int Yukicoda=scan.nextInt();
        int Tax=scan.nextInt();
        int Payment;
        Payment=Yukicoda+Yukicoda*Tax/100;
        System.out.println(Payment);
    }
}
0