結果

問題 No.128 お年玉(1)
ユーザー T AT A
提出日時 2021-06-10 23:32:13
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 339 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 44,180 KB
最終ジャッジ日時 2023-08-20 09:59:53
合計ジャッジ時間 3,510 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
42,820 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 86 ms
42,148 KB
testcase_05 AC 88 ms
44,180 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 86 ms
42,748 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

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