結果

問題 No.56 消費税
ユーザー S1hoS1ho
提出日時 2017-02-19 15:34:04
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 349 bytes
コンパイル時間 2,858 ms
コンパイル使用メモリ 71,064 KB
実行使用メモリ 58,660 KB
最終ジャッジ日時 2023-08-28 19:13:45
合計ジャッジ時間 7,436 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,108 KB
testcase_01 AC 119 ms
55,784 KB
testcase_02 AC 118 ms
55,944 KB
testcase_03 AC 119 ms
55,932 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 119 ms
56,312 KB
testcase_09 AC 117 ms
55,520 KB
testcase_10 AC 118 ms
56,036 KB
testcase_11 AC 119 ms
56,172 KB
testcase_12 AC 121 ms
55,524 KB
testcase_13 AC 120 ms
55,992 KB
testcase_14 AC 118 ms
56,276 KB
testcase_15 AC 120 ms
56,260 KB
testcase_16 AC 119 ms
56,004 KB
testcase_17 AC 119 ms
55,736 KB
testcase_18 AC 120 ms
55,928 KB
testcase_19 AC 119 ms
56,024 KB
testcase_20 AC 120 ms
55,780 KB
testcase_21 AC 119 ms
56,036 KB
testcase_22 AC 118 ms
56,088 KB
testcase_23 AC 119 ms
56,308 KB
testcase_24 AC 118 ms
56,376 KB
testcase_25 AC 118 ms
56,004 KB
testcase_26 AC 118 ms
56,408 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();
        
        float sum = d + d * (p / 100.0f);
        
        System.out.println((int)sum);
        
    }
    
}
0