結果

問題 No.56 消費税
ユーザー ちよちゃんちよちゃん
提出日時 2016-05-10 12:42:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 278 bytes
コンパイル時間 3,272 ms
コンパイル使用メモリ 72,160 KB
実行使用メモリ 56,120 KB
最終ジャッジ日時 2023-09-25 03:31:53
合計ジャッジ時間 7,942 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,980 KB
testcase_01 AC 125 ms
55,940 KB
testcase_02 AC 126 ms
56,088 KB
testcase_03 AC 125 ms
55,960 KB
testcase_04 AC 129 ms
55,952 KB
testcase_05 AC 128 ms
56,068 KB
testcase_06 AC 127 ms
55,732 KB
testcase_07 AC 127 ms
56,052 KB
testcase_08 AC 129 ms
55,996 KB
testcase_09 AC 126 ms
55,960 KB
testcase_10 AC 126 ms
55,908 KB
testcase_11 AC 128 ms
55,960 KB
testcase_12 AC 125 ms
55,956 KB
testcase_13 AC 126 ms
53,856 KB
testcase_14 AC 127 ms
56,120 KB
testcase_15 AC 128 ms
55,388 KB
testcase_16 AC 129 ms
55,648 KB
testcase_17 AC 126 ms
55,496 KB
testcase_18 AC 126 ms
55,732 KB
testcase_19 AC 128 ms
55,684 KB
testcase_20 AC 127 ms
55,696 KB
testcase_21 AC 128 ms
53,788 KB
testcase_22 AC 128 ms
55,500 KB
testcase_23 AC 128 ms
55,748 KB
testcase_24 AC 127 ms
56,036 KB
testcase_25 AC 127 ms
55,936 KB
testcase_26 AC 126 ms
55,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yuki4 {
	
	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int d = scan.nextInt();
		int p = scan.nextInt();
		scan.close();
		int answer = (int) (d +(d)*(0.01*p));
		System.out.println(answer);
	}
}
0