結果

問題 No.56 消費税
ユーザー FpmpAmpmFpmpAmpm
提出日時 2016-10-21 23:32:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 393 bytes
コンパイル時間 1,920 ms
コンパイル使用メモリ 71,132 KB
実行使用メモリ 56,392 KB
最終ジャッジ日時 2023-09-25 03:42:43
合計ジャッジ時間 6,524 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,628 KB
testcase_01 AC 126 ms
56,356 KB
testcase_02 AC 123 ms
55,776 KB
testcase_03 AC 125 ms
55,776 KB
testcase_04 AC 126 ms
55,852 KB
testcase_05 AC 125 ms
55,892 KB
testcase_06 AC 125 ms
55,924 KB
testcase_07 AC 124 ms
56,008 KB
testcase_08 AC 126 ms
55,940 KB
testcase_09 AC 125 ms
55,728 KB
testcase_10 AC 124 ms
56,232 KB
testcase_11 AC 122 ms
56,232 KB
testcase_12 AC 122 ms
55,792 KB
testcase_13 AC 124 ms
55,672 KB
testcase_14 AC 122 ms
56,056 KB
testcase_15 AC 124 ms
55,744 KB
testcase_16 AC 124 ms
55,624 KB
testcase_17 AC 123 ms
55,876 KB
testcase_18 AC 125 ms
56,392 KB
testcase_19 AC 125 ms
55,516 KB
testcase_20 AC 123 ms
55,652 KB
testcase_21 AC 128 ms
55,424 KB
testcase_22 AC 125 ms
56,148 KB
testcase_23 AC 125 ms
55,892 KB
testcase_24 AC 124 ms
55,704 KB
testcase_25 AC 122 ms
55,996 KB
testcase_26 AC 120 ms
55,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
    	int D = sc.nextInt();
    	double P = sc.nextInt();
    	
    	System.out.println((int)Math.floor(D * (100 + P) / 100));
	}
}
0