結果

問題 No.46 はじめのn歩
ユーザー f Oxf Ox
提出日時 2021-04-12 09:39:53
言語 JavaScript
(node v21.7.1)
結果
TLE  
実行時間 -
コード長 294 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 42,408 KB
最終ジャッジ日時 2023-09-10 15:44:22
合計ジャッジ時間 7,511 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
42,144 KB
testcase_01 AC 77 ms
42,300 KB
testcase_02 AC 78 ms
42,384 KB
testcase_03 AC 77 ms
42,144 KB
testcase_04 AC 79 ms
42,208 KB
testcase_05 AC 78 ms
42,324 KB
testcase_06 AC 78 ms
42,408 KB
testcase_07 AC 78 ms
42,148 KB
testcase_08 TLE -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  const data = input.split(" ");
  const a = data[0];
  const b = data[1];

  let count = 0;

  while ((a*count)<b) {
    count ++;
  }

  // for (i=0; (a*i)<b; i++){
  //   count ++;
  // }

  console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0