結果

問題 No.56 消費税
ユーザー h_tyokinuhata
提出日時 2015-12-23 02:00:24
言語 Java
(openjdk 23)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 343 bytes
コンパイル時間 2,171 ms
コンパイル使用メモリ 74,736 KB
実行使用メモリ 54,560 KB
最終ジャッジ日時 2024-07-18 03:01:52
合計ジャッジ時間 5,657 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 22 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
 
class Main {
    public static void main(String[] args) {

    	Scanner sc = new Scanner(System.in);
    	ArrayList<Integer> thList = new ArrayList<>();

    	int D = sc.nextInt();
    	int P = sc.nextInt();
    	double tax = D * ((double)P / 100);
    	int result = D + (int)tax;
    	System.out.println(result);
    }
}
0