結果

問題 No.388 階段 (1)
ユーザー f Oxf Ox
提出日時 2021-04-12 10:08:13
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 353 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 44,108 KB
最終ジャッジ日時 2023-09-10 16:13:55
合計ジャッジ時間 3,093 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
42,280 KB
testcase_01 AC 76 ms
42,068 KB
testcase_02 AC 75 ms
42,164 KB
testcase_03 AC 76 ms
42,156 KB
testcase_04 AC 75 ms
42,192 KB
testcase_05 AC 79 ms
42,296 KB
testcase_06 AC 77 ms
42,180 KB
testcase_07 AC 75 ms
42,140 KB
testcase_08 AC 78 ms
44,108 KB
testcase_09 AC 74 ms
42,280 KB
testcase_10 AC 78 ms
42,404 KB
testcase_11 AC 76 ms
42,160 KB
testcase_12 AC 75 ms
42,296 KB
testcase_13 AC 75 ms
42,232 KB
testcase_14 AC 73 ms
42,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  const data = input.split(" ");

  if (data[0] === data[1]) {
    console.log(1);
  } else if (data[0]%data[1]===0){
    console.log((data[0]/data[1])+1);
  } else {
    console.log(Math.ceil(data[0]/data[1]));
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0