結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
41,876 KB
testcase_01 AC 77 ms
41,852 KB
testcase_02 AC 78 ms
41,888 KB
testcase_03 AC 79 ms
41,740 KB
testcase_04 AC 79 ms
41,888 KB
testcase_05 AC 78 ms
41,864 KB
testcase_06 AC 78 ms
41,760 KB
testcase_07 AC 78 ms
41,860 KB
testcase_08 AC 78 ms
42,012 KB
testcase_09 AC 78 ms
41,908 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