結果

問題 No.56 消費税
ユーザー swyroakswyroak
提出日時 2021-08-04 23:05:22
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 79 ms / 5,000 ms
コード長 315 bytes
コンパイル時間 28 ms
コンパイル使用メモリ 5,156 KB
実行使用メモリ 43,800 KB
最終ジャッジ日時 2023-10-14 21:26:14
合計ジャッジ時間 3,372 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
42,028 KB
testcase_01 AC 79 ms
41,912 KB
testcase_02 AC 76 ms
41,944 KB
testcase_03 AC 74 ms
41,752 KB
testcase_04 AC 74 ms
41,896 KB
testcase_05 AC 73 ms
42,024 KB
testcase_06 AC 74 ms
42,096 KB
testcase_07 AC 72 ms
41,944 KB
testcase_08 AC 75 ms
41,772 KB
testcase_09 AC 75 ms
41,960 KB
testcase_10 AC 73 ms
41,756 KB
testcase_11 AC 74 ms
42,264 KB
testcase_12 AC 74 ms
41,872 KB
testcase_13 AC 75 ms
41,976 KB
testcase_14 AC 76 ms
41,964 KB
testcase_15 AC 74 ms
41,768 KB
testcase_16 AC 74 ms
41,972 KB
testcase_17 AC 77 ms
43,800 KB
testcase_18 AC 74 ms
42,032 KB
testcase_19 AC 74 ms
41,948 KB
testcase_20 AC 74 ms
41,900 KB
testcase_21 AC 74 ms
41,748 KB
testcase_22 AC 77 ms
41,904 KB
testcase_23 AC 75 ms
41,956 KB
testcase_24 AC 75 ms
42,004 KB
testcase_25 AC 74 ms
42,024 KB
testcase_26 AC 75 ms
42,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"use strict";
function Main(input) {
    let price;
    let tax;
    [price, tax] = input.split(" ").map(i => Number(i));
    console.log(Math.floor(price + price * 0.01 * tax));
}
//テストの入力を受け取る
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
//# sourceMappingURL=index.js.map
0