結果

問題 No.56 消費税
ユーザー yonaka_ggg
提出日時 2020-09-06 16:08:46
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 2,271 ms
コンパイル使用メモリ 74,104 KB
実行使用メモリ 56,088 KB
最終ジャッジ日時 2024-11-29 07:14:57
合計ジャッジ時間 7,184 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 19 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int d = sc.nextInt();
        double p = (sc.nextInt() + 100) / 100.0;

        System.out.println((int)Math.floor(d * p));
    }

}
0