結果

問題 No.56 消費税
ユーザー Maeda
提出日時 2025-08-25 13:03:56
言語 Java
(openjdk 23)
結果
AC  
実行時間 141 ms / 5,000 ms
コード長 388 bytes
コンパイル時間 2,332 ms
コンパイル使用メモリ 76,944 KB
実行使用メモリ 46,552 KB
最終ジャッジ日時 2025-08-25 13:04:03
合計ジャッジ時間 6,693 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ!!
        Scanner scan = new Scanner(System.in);
        int money = scan.nextInt();
        double tax = scan.nextInt() * 0.01 ;
		double ans = money + (money * tax);

        System.out.println((int) Math.floor(ans));
    }
}
0