結果

問題 No.46 はじめのn歩
ユーザー mahnamahna
提出日時 2021-02-10 16:04:40
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 86 ms / 5,000 ms
コード長 360 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 42,744 KB
最終ジャッジ日時 2023-09-22 10:27:03
合計ジャッジ時間 2,803 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
42,492 KB
testcase_01 AC 83 ms
42,604 KB
testcase_02 AC 83 ms
42,540 KB
testcase_03 AC 84 ms
42,456 KB
testcase_04 AC 83 ms
42,656 KB
testcase_05 AC 86 ms
42,396 KB
testcase_06 AC 83 ms
42,500 KB
testcase_07 AC 83 ms
42,388 KB
testcase_08 AC 82 ms
42,744 KB
testcase_09 AC 82 ms
42,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

process.stdin.resume();
process.stdin.setEncoding('utf8');

var input_lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  input_lines.push(line);
});

reader.on('close', () => {

    let [a,b] = input_lines[0].split(" ");
    console.log(Math.ceil( b / a));

});
0