結果

問題 No.46 はじめのn歩
ユーザー jcm_2jcm_2
提出日時 2023-05-05 14:31:05
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 338 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 4,908 KB
実行使用メモリ 42,408 KB
最終ジャッジ日時 2023-08-14 22:26:25
合計ジャッジ時間 2,649 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
42,224 KB
testcase_01 AC 74 ms
42,104 KB
testcase_02 AC 75 ms
42,148 KB
testcase_03 AC 75 ms
42,100 KB
testcase_04 AC 74 ms
42,316 KB
testcase_05 AC 75 ms
42,140 KB
testcase_06 AC 74 ms
42,360 KB
testcase_07 AC 77 ms
42,172 KB
testcase_08 AC 77 ms
42,408 KB
testcase_09 AC 76 ms
42,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  // parse input
  const data = input.split("\n");
  const first_line = data[0].split(" ");

  // solve
  const c = solve(parseInt(first_line[0]), parseInt(first_line[1]));

  // output
  console.log(c);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));

function solve(a, b) {
  return Math.ceil(b / a);
}
0