結果

問題 No.56 消費税
ユーザー yagi2yagi2
提出日時 2017-04-25 17:31:03
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 1,772 ms
コンパイル使用メモリ 71,796 KB
実行使用メモリ 58,460 KB
最終ジャッジ日時 2023-10-11 09:45:08
合計ジャッジ時間 5,750 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
56,224 KB
testcase_01 AC 108 ms
55,912 KB
testcase_02 AC 106 ms
56,372 KB
testcase_03 WA -
testcase_04 AC 104 ms
55,960 KB
testcase_05 AC 106 ms
56,276 KB
testcase_06 AC 104 ms
55,900 KB
testcase_07 AC 108 ms
55,876 KB
testcase_08 AC 105 ms
56,060 KB
testcase_09 AC 110 ms
55,444 KB
testcase_10 AC 111 ms
56,104 KB
testcase_11 AC 104 ms
56,304 KB
testcase_12 AC 104 ms
56,324 KB
testcase_13 AC 108 ms
55,596 KB
testcase_14 AC 104 ms
55,952 KB
testcase_15 AC 106 ms
56,216 KB
testcase_16 AC 108 ms
56,180 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println((int)Math.floor(Long.parseLong(sc.next()) * (Integer.parseInt(sc.next()) / 100.0 + 1)));
    }
}
0