結果

問題 No.56 消費税
ユーザー m4s4k1ch1m4s4k1ch1
提出日時 2015-05-28 14:37:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 45 ms / 5,000 ms
コード長 445 bytes
コンパイル時間 2,412 ms
コンパイル使用メモリ 71,268 KB
実行使用メモリ 49,944 KB
最終ジャッジ日時 2023-09-25 03:03:06
合計ジャッジ時間 4,256 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
47,416 KB
testcase_01 AC 43 ms
49,712 KB
testcase_02 AC 43 ms
49,284 KB
testcase_03 AC 44 ms
49,556 KB
testcase_04 AC 43 ms
49,524 KB
testcase_05 AC 43 ms
49,408 KB
testcase_06 AC 43 ms
49,416 KB
testcase_07 AC 43 ms
49,292 KB
testcase_08 AC 44 ms
49,644 KB
testcase_09 AC 44 ms
49,564 KB
testcase_10 AC 44 ms
49,720 KB
testcase_11 AC 44 ms
49,288 KB
testcase_12 AC 44 ms
49,544 KB
testcase_13 AC 44 ms
49,944 KB
testcase_14 AC 43 ms
49,596 KB
testcase_15 AC 45 ms
49,368 KB
testcase_16 AC 44 ms
49,412 KB
testcase_17 AC 45 ms
49,548 KB
testcase_18 AC 44 ms
49,592 KB
testcase_19 AC 45 ms
49,584 KB
testcase_20 AC 44 ms
49,352 KB
testcase_21 AC 44 ms
49,364 KB
testcase_22 AC 44 ms
49,788 KB
testcase_23 AC 45 ms
49,556 KB
testcase_24 AC 45 ms
49,380 KB
testcase_25 AC 44 ms
49,592 KB
testcase_26 AC 42 ms
49,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] lines = line.split(" ");
		double d = Double.parseDouble(lines[0]);
		double p = Double.parseDouble(lines[1]);
		
		System.out.println((int)Math.floor(d + (d * (p / 100.00))));
	}
}
0