結果

問題 No.56 消費税
ユーザー ikawaiikawai
提出日時 2023-09-04 15:31:48
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 2,915 ms
コンパイル使用メモリ 83,636 KB
実行使用メモリ 54,796 KB
最終ジャッジ日時 2024-06-22 13:53:30
合計ジャッジ時間 7,244 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 3 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Wandbox
{
    public static void main(String[] args)
    {
    	Scanner sc = new Scanner(System.in);
    	
    	int d = sc.nextInt();
    	double p = sc.nextInt();
    	p /= 100;
    	double ans = d * (1 + p);
    	String result = String.format("%,d", (int)ans);
    	System.out.println(result);
    }
}
0