結果

問題 No.56 消費税
ユーザー Takuya-AmpiTakuya-Ampi
提出日時 2020-03-21 10:57:04
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 326 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 6,952 KB
実行使用メモリ 42,300 KB
最終ジャッジ日時 2024-10-13 01:35:55
合計ジャッジ時間 2,971 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

const reader = require("readline").createInterface({
  input: process.stdin,
  output: process.stdout
});
let lines = [];
reader.on("line", line => {
  lines.push(line);
});
reader.on("close", () => {
  const arr = lines[0].split(' ').map(str => parseInt(str, 10))
  console.log(Math.floor(arr[0] * (100 + arr[1]) / 100))
});
0