結果

問題 No.388 階段 (1)
ユーザー f Oxf Ox
提出日時 2021-04-12 10:04:37
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 37 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 42,292 KB
最終ジャッジ日時 2023-09-10 16:10:35
合計ジャッジ時間 2,184 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 80 ms
42,032 KB
testcase_02 AC 78 ms
42,240 KB
testcase_03 AC 80 ms
42,064 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 79 ms
42,104 KB
testcase_08 AC 78 ms
42,036 KB
testcase_09 AC 78 ms
42,028 KB
testcase_10 WA -
testcase_11 AC 79 ms
42,036 KB
testcase_12 AC 78 ms
42,152 KB
testcase_13 AC 78 ms
42,028 KB
testcase_14 AC 78 ms
42,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

  // const F = Math.ceil(data[0]/data[1]);
  // console.log(F);

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