結果

問題 No.56 消費税
ユーザー ダンネックダンネック
提出日時 2020-05-23 01:32:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 325 bytes
コンパイル時間 3,246 ms
コンパイル使用メモリ 74,056 KB
実行使用メモリ 41,612 KB
最終ジャッジ日時 2024-04-15 22:25:25
合計ジャッジ時間 7,682 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
41,400 KB
testcase_01 AC 128 ms
41,376 KB
testcase_02 AC 130 ms
41,228 KB
testcase_03 AC 135 ms
41,472 KB
testcase_04 AC 116 ms
40,328 KB
testcase_05 AC 130 ms
41,148 KB
testcase_06 AC 127 ms
41,368 KB
testcase_07 AC 126 ms
41,468 KB
testcase_08 AC 126 ms
41,320 KB
testcase_09 AC 114 ms
40,216 KB
testcase_10 AC 118 ms
40,268 KB
testcase_11 AC 135 ms
41,468 KB
testcase_12 AC 129 ms
41,132 KB
testcase_13 AC 118 ms
40,132 KB
testcase_14 AC 133 ms
41,188 KB
testcase_15 AC 132 ms
41,268 KB
testcase_16 AC 133 ms
41,332 KB
testcase_17 AC 132 ms
41,116 KB
testcase_18 AC 137 ms
41,192 KB
testcase_19 AC 134 ms
41,176 KB
testcase_20 AC 135 ms
41,156 KB
testcase_21 AC 132 ms
41,468 KB
testcase_22 AC 132 ms
41,612 KB
testcase_23 AC 136 ms
41,204 KB
testcase_24 AC 133 ms
41,188 KB
testcase_25 AC 133 ms
41,032 KB
testcase_26 AC 134 ms
41,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;
public class tax{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
	    int value = sc.nextInt();
	    int rate = sc.nextInt();
        int total = value * (rate + 100) /100;
	    System.out.println(total);
        sc.close();
    }
}
0