結果

問題 No.128 お年玉(1)
ユーザー T A
提出日時 2021-06-10 23:23:37
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 355 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 6,692 KB
実行使用メモリ 42,300 KB
最終ジャッジ日時 2024-11-30 11:17:14
合計ジャッジ時間 3,507 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

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 price = parseInt(lines[0])
  const count = parseInt(lines[1])
  const result = Math.floor((price / 1000) / count)
  console.log(result * 1000)
});
0