結果

問題 No.56 消費税
ユーザー hhgfhn1hhgfhn1
提出日時 2018-08-21 15:57:09
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 4,617 ms
コンパイル使用メモリ 72,004 KB
実行使用メモリ 57,888 KB
最終ジャッジ日時 2023-08-22 04:47:06
合計ジャッジ時間 9,936 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,436 KB
testcase_01 AC 124 ms
55,556 KB
testcase_02 AC 126 ms
55,476 KB
testcase_03 WA -
testcase_04 AC 126 ms
55,444 KB
testcase_05 AC 127 ms
55,560 KB
testcase_06 AC 126 ms
55,600 KB
testcase_07 AC 125 ms
55,264 KB
testcase_08 AC 125 ms
55,588 KB
testcase_09 AC 126 ms
56,072 KB
testcase_10 AC 125 ms
55,424 KB
testcase_11 AC 126 ms
55,800 KB
testcase_12 AC 126 ms
55,300 KB
testcase_13 AC 125 ms
55,580 KB
testcase_14 AC 126 ms
55,284 KB
testcase_15 AC 125 ms
55,444 KB
testcase_16 AC 126 ms
55,584 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

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