結果

問題 No.56 消費税
ユーザー Ryota EnokidoRyota Enokido
提出日時 2018-12-12 09:29:27
言語 Java
(openjdk 23)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 409 bytes
コンパイル時間 2,205 ms
コンパイル使用メモリ 74,092 KB
実行使用メモリ 41,548 KB
最終ジャッジ日時 2024-09-25 03:30:47
合計ジャッジ時間 6,757 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.lang.Math;

    public class Main {
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            
            int n = sc.nextInt();
            int d = sc.nextInt();
            double pay = n + n * (d*0.01);
            double anspay = Math.floor(pay);
            System.out.println(Math.round(anspay));
        }
    }
0