結果

問題 No.46 はじめのn歩
ユーザー swyroakswyroak
提出日時 2021-07-31 00:40:48
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 363 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 42,496 KB
最終ジャッジ日時 2023-10-14 09:24:07
合計ジャッジ時間 1,664 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
42,236 KB
testcase_01 AC 75 ms
42,188 KB
testcase_02 AC 73 ms
42,232 KB
testcase_03 AC 76 ms
42,456 KB
testcase_04 AC 75 ms
42,208 KB
testcase_05 AC 81 ms
42,264 KB
testcase_06 AC 74 ms
42,236 KB
testcase_07 AC 75 ms
42,072 KB
testcase_08 AC 76 ms
42,496 KB
testcase_09 AC 73 ms
42,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"use strict";
function Main(input) {
    const stride = Number(input.split(" ")[0]);
    const distance = Number(input.split(" ")[1]);
    const ans = Math.ceil(distance / stride);
    console.log(String(ans));
}
//テストの入力を受け取る
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
//Main("2 5");
//# sourceMappingURL=index.js.map
0