結果

問題 No.128 お年玉(1)
ユーザー 多賀悠人多賀悠人
提出日時 2021-06-13 16:40:37
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 375 bytes
コンパイル時間 7,664 ms
コンパイル使用メモリ 255,180 KB
実行使用メモリ 44,768 KB
最終ジャッジ日時 2023-08-24 19:38:59
合計ジャッジ時間 11,467 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
42,536 KB
testcase_01 AC 82 ms
42,624 KB
testcase_02 AC 82 ms
42,692 KB
testcase_03 AC 83 ms
44,768 KB
testcase_04 AC 82 ms
42,580 KB
testcase_05 AC 82 ms
42,576 KB
testcase_06 AC 84 ms
42,540 KB
testcase_07 AC 81 ms
42,564 KB
testcase_08 AC 83 ms
42,708 KB
testcase_09 AC 83 ms
42,752 KB
testcase_10 AC 81 ms
42,732 KB
testcase_11 AC 82 ms
42,532 KB
testcase_12 AC 84 ms
42,544 KB
testcase_13 AC 82 ms
42,592 KB
testcase_14 AC 81 ms
42,736 KB
testcase_15 AC 82 ms
42,628 KB
testcase_16 AC 81 ms
42,704 KB
testcase_17 AC 82 ms
42,768 KB
testcase_18 AC 82 ms
42,572 KB
testcase_19 AC 82 ms
42,588 KB
testcase_20 AC 82 ms
42,772 KB
testcase_21 AC 81 ms
42,692 KB
testcase_22 AC 83 ms
42,776 KB
testcase_23 AC 84 ms
42,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

export { }
let lines = [];
const reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', function (line) {
  lines.push(line);
});
reader.on('close', function () {

  const money: number = lines[0]
  const people: number = lines[1]

  const result = Math.floor(money/(people*1000))*1000
  console.log(result)

});
0