結果

問題 No.56 消費税
ユーザー YamaKasaYamaKasa
提出日時 2018-04-21 17:20:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 257 bytes
コンパイル時間 2,199 ms
コンパイル使用メモリ 70,460 KB
実行使用メモリ 40,000 KB
最終ジャッジ日時 2023-09-09 12:20:44
合計ジャッジ時間 6,505 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
39,444 KB
testcase_01 AC 120 ms
39,048 KB
testcase_02 AC 119 ms
39,360 KB
testcase_03 AC 120 ms
39,432 KB
testcase_04 AC 120 ms
39,372 KB
testcase_05 AC 118 ms
40,000 KB
testcase_06 AC 120 ms
39,236 KB
testcase_07 AC 120 ms
39,480 KB
testcase_08 AC 118 ms
39,788 KB
testcase_09 AC 120 ms
39,352 KB
testcase_10 AC 120 ms
39,192 KB
testcase_11 AC 118 ms
39,388 KB
testcase_12 AC 121 ms
39,396 KB
testcase_13 AC 122 ms
39,652 KB
testcase_14 AC 120 ms
39,196 KB
testcase_15 AC 120 ms
39,292 KB
testcase_16 AC 120 ms
39,408 KB
testcase_17 AC 119 ms
39,596 KB
testcase_18 AC 118 ms
39,000 KB
testcase_19 AC 120 ms
39,476 KB
testcase_20 AC 121 ms
39,404 KB
testcase_21 AC 120 ms
39,092 KB
testcase_22 AC 121 ms
39,216 KB
testcase_23 AC 119 ms
39,036 KB
testcase_24 AC 120 ms
39,604 KB
testcase_25 AC 119 ms
39,164 KB
testcase_26 AC 119 ms
39,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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