結果

問題 No.56 消費税
ユーザー jcm_2
提出日時 2019-08-12 16:46:54
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 69 ms / 5,000 ms
コード長 270 bytes
コンパイル時間 66 ms
コンパイル使用メモリ 6,820 KB
実行使用メモリ 41,076 KB
最終ジャッジ日時 2024-10-13 01:19:53
合計ジャッジ時間 2,624 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  const data = input.trim().split("\n")
  const first_line = data[0].split(" ")
  const D = parseInt(first_line[0]), P = parseInt(first_line[1])
  console.log(Math.floor(D + (D * P * 0.01)))
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"))
0