結果

問題 No.56 消費税
ユーザー kameyama_skameyama_s
提出日時 2023-05-08 18:46:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 5,000 ms
コード長 343 bytes
コンパイル時間 1,736 ms
コンパイル使用メモリ 71,884 KB
実行使用メモリ 56,348 KB
最終ジャッジ日時 2023-08-16 19:23:53
合計ジャッジ時間 6,575 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
56,080 KB
testcase_01 AC 114 ms
55,808 KB
testcase_02 AC 115 ms
55,936 KB
testcase_03 AC 116 ms
55,832 KB
testcase_04 AC 117 ms
55,780 KB
testcase_05 AC 116 ms
56,268 KB
testcase_06 AC 115 ms
56,052 KB
testcase_07 AC 114 ms
56,184 KB
testcase_08 AC 115 ms
55,784 KB
testcase_09 AC 116 ms
56,032 KB
testcase_10 AC 118 ms
56,064 KB
testcase_11 AC 116 ms
55,516 KB
testcase_12 AC 113 ms
56,080 KB
testcase_13 AC 114 ms
55,772 KB
testcase_14 AC 114 ms
55,836 KB
testcase_15 AC 115 ms
56,348 KB
testcase_16 AC 116 ms
55,908 KB
testcase_17 AC 116 ms
56,196 KB
testcase_18 AC 115 ms
55,784 KB
testcase_19 AC 114 ms
55,584 KB
testcase_20 AC 114 ms
56,136 KB
testcase_21 AC 114 ms
55,808 KB
testcase_22 AC 116 ms
56,124 KB
testcase_23 AC 114 ms
55,836 KB
testcase_24 AC 114 ms
56,164 KB
testcase_25 AC 117 ms
56,156 KB
testcase_26 AC 116 ms
56,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int prepare = a * b; 
        int prepare2 = prepare / 100;
        int result = a + prepare2;
        System.out.println(result);
    }
}
0