結果

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

ソースコード

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 / count)
  console.log(result)
});
0