結果

問題 No.56 消費税
ユーザー ikawaiikawai
提出日時 2023-09-04 15:48:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 151 ms / 5,000 ms
コード長 269 bytes
コンパイル時間 3,322 ms
コンパイル使用メモリ 70,600 KB
実行使用メモリ 56,244 KB
最終ジャッジ日時 2023-09-04 15:49:05
合計ジャッジ時間 8,368 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,404 KB
testcase_01 AC 124 ms
55,280 KB
testcase_02 AC 125 ms
55,552 KB
testcase_03 AC 125 ms
55,572 KB
testcase_04 AC 125 ms
55,392 KB
testcase_05 AC 124 ms
56,084 KB
testcase_06 AC 125 ms
55,964 KB
testcase_07 AC 151 ms
55,632 KB
testcase_08 AC 123 ms
55,716 KB
testcase_09 AC 123 ms
55,648 KB
testcase_10 AC 125 ms
55,556 KB
testcase_11 AC 124 ms
55,412 KB
testcase_12 AC 125 ms
55,536 KB
testcase_13 AC 124 ms
55,232 KB
testcase_14 AC 125 ms
55,728 KB
testcase_15 AC 125 ms
55,740 KB
testcase_16 AC 129 ms
55,548 KB
testcase_17 AC 126 ms
55,636 KB
testcase_18 AC 121 ms
55,776 KB
testcase_19 AC 124 ms
55,432 KB
testcase_20 AC 123 ms
55,592 KB
testcase_21 AC 123 ms
55,536 KB
testcase_22 AC 125 ms
56,244 KB
testcase_23 AC 124 ms
55,700 KB
testcase_24 AC 133 ms
55,520 KB
testcase_25 AC 123 ms
55,564 KB
testcase_26 AC 125 ms
55,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Wandbox
{
    public static void main(String[] args)
    {
    	Scanner sc = new Scanner(System.in);
    	
    	int d = sc.nextInt();
    	int p = sc.nextInt();
    	
    	int ans = d * p / 100 + d;
    	System.out.println(ans);
    }
}
0