結果

問題 No.56 消費税
ユーザー hhgfhn1
提出日時 2018-08-21 15:57:09
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 3,179 ms
コンパイル使用メモリ 74,288 KB
実行使用メモリ 54,368 KB
最終ジャッジ日時 2024-12-15 22:51:08
合計ジャッジ時間 7,573 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 13 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class sampleA {
	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		double d = scan.nextInt();
		double p = scan.nextInt();
		int answer = (int)(d*(1+p/100));
		
		System.out.println(answer);
	}
}
0