結果

問題 No.56 消費税
ユーザー Koketti1Koketti1
提出日時 2017-02-04 17:44:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 271 bytes
コンパイル時間 1,901 ms
コンパイル使用メモリ 71,364 KB
実行使用メモリ 58,184 KB
最終ジャッジ日時 2023-09-25 03:51:08
合計ジャッジ時間 6,403 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
56,200 KB
testcase_01 AC 125 ms
55,924 KB
testcase_02 AC 121 ms
56,088 KB
testcase_03 AC 121 ms
55,416 KB
testcase_04 AC 121 ms
55,584 KB
testcase_05 AC 121 ms
55,660 KB
testcase_06 AC 124 ms
55,892 KB
testcase_07 AC 125 ms
55,804 KB
testcase_08 AC 121 ms
55,784 KB
testcase_09 AC 123 ms
58,184 KB
testcase_10 AC 121 ms
56,244 KB
testcase_11 AC 124 ms
55,932 KB
testcase_12 AC 122 ms
55,928 KB
testcase_13 AC 123 ms
56,204 KB
testcase_14 AC 123 ms
55,508 KB
testcase_15 AC 119 ms
55,652 KB
testcase_16 AC 119 ms
55,516 KB
testcase_17 AC 120 ms
55,952 KB
testcase_18 AC 123 ms
56,200 KB
testcase_19 AC 124 ms
55,876 KB
testcase_20 AC 122 ms
56,384 KB
testcase_21 AC 122 ms
55,956 KB
testcase_22 AC 125 ms
56,088 KB
testcase_23 AC 121 ms
56,028 KB
testcase_24 AC 122 ms
55,960 KB
testcase_25 AC 121 ms
55,892 KB
testcase_26 AC 121 ms
55,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int D = scanner.nextInt();
		int P = scanner.nextInt();
		
		System.out.println((int)(D + (double)(D/100.0*P)));
		scanner.close();
	}
}
0