結果

問題 No.56 消費税
ユーザー f Oxf Ox
提出日時 2021-04-14 22:38:05
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 42,456 KB
最終ジャッジ日時 2023-09-13 12:24:18
合計ジャッジ時間 4,402 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
42,100 KB
testcase_01 AC 75 ms
42,052 KB
testcase_02 AC 75 ms
42,372 KB
testcase_03 WA -
testcase_04 AC 74 ms
42,088 KB
testcase_05 AC 74 ms
42,016 KB
testcase_06 AC 74 ms
42,084 KB
testcase_07 AC 76 ms
41,904 KB
testcase_08 AC 76 ms
42,124 KB
testcase_09 AC 76 ms
42,012 KB
testcase_10 AC 75 ms
42,060 KB
testcase_11 AC 76 ms
42,244 KB
testcase_12 AC 75 ms
41,884 KB
testcase_13 AC 75 ms
41,904 KB
testcase_14 AC 74 ms
41,904 KB
testcase_15 AC 74 ms
42,316 KB
testcase_16 AC 74 ms
42,056 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 #

function Main(input) {
  const data = input.split(" ");
  const D = Number(data[0]);
  const P = Number(data[1]);

  const result = D*((P/100)+1);
  console.log(Math.floor(result));

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0