結果

問題 No.56 消費税
ユーザー S1hoS1ho
提出日時 2017-02-19 15:55:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 5,000 ms
コード長 339 bytes
コンパイル時間 3,159 ms
コンパイル使用メモリ 71,376 KB
実行使用メモリ 56,280 KB
最終ジャッジ日時 2023-09-25 03:53:37
合計ジャッジ時間 7,850 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,672 KB
testcase_01 AC 129 ms
56,028 KB
testcase_02 AC 128 ms
55,896 KB
testcase_03 AC 127 ms
55,952 KB
testcase_04 AC 126 ms
56,256 KB
testcase_05 AC 127 ms
55,904 KB
testcase_06 AC 126 ms
56,280 KB
testcase_07 AC 127 ms
55,772 KB
testcase_08 AC 127 ms
55,648 KB
testcase_09 AC 127 ms
55,800 KB
testcase_10 AC 127 ms
56,000 KB
testcase_11 AC 128 ms
55,812 KB
testcase_12 AC 128 ms
55,808 KB
testcase_13 AC 127 ms
55,500 KB
testcase_14 AC 129 ms
55,788 KB
testcase_15 AC 131 ms
56,176 KB
testcase_16 AC 129 ms
55,916 KB
testcase_17 AC 129 ms
56,128 KB
testcase_18 AC 125 ms
55,512 KB
testcase_19 AC 123 ms
56,020 KB
testcase_20 AC 125 ms
55,804 KB
testcase_21 AC 127 ms
55,536 KB
testcase_22 AC 127 ms
55,808 KB
testcase_23 AC 127 ms
55,944 KB
testcase_24 AC 125 ms
56,076 KB
testcase_25 AC 127 ms
55,752 KB
testcase_26 AC 126 ms
55,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Tax {

    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        
        int d = scanner.nextInt();
        int p = scanner.nextInt();
        
        int sum = d + (d * p) / 100;
        
        System.out.println(sum);
        
    }
    
}
0