結果

問題 No.56 消費税
ユーザー kano_townkano_town
提出日時 2014-11-19 09:58:44
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 256 bytes
コンパイル時間 3,116 ms
コンパイル使用メモリ 71,476 KB
実行使用メモリ 58,552 KB
最終ジャッジ日時 2023-08-30 21:48:18
合計ジャッジ時間 7,953 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,336 KB
testcase_01 AC 116 ms
55,816 KB
testcase_02 AC 121 ms
55,960 KB
testcase_03 WA -
testcase_04 AC 116 ms
55,636 KB
testcase_05 AC 117 ms
56,108 KB
testcase_06 AC 117 ms
56,320 KB
testcase_07 AC 119 ms
54,428 KB
testcase_08 AC 118 ms
55,608 KB
testcase_09 AC 118 ms
56,044 KB
testcase_10 AC 117 ms
56,260 KB
testcase_11 AC 116 ms
55,964 KB
testcase_12 AC 117 ms
55,740 KB
testcase_13 AC 117 ms
55,912 KB
testcase_14 AC 117 ms
54,176 KB
testcase_15 AC 118 ms
56,204 KB
testcase_16 AC 116 ms
55,948 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;

public class Yukicoder56 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int D = sc.nextInt();
		int P = sc.nextInt();
		
		System.out.println((int)(D * (1.0 + P / 100.0)));
	}

}
0