結果

問題 No.388 階段 (1)
ユーザー f Ox
提出日時 2021-04-12 10:08:13
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 41,076 KB
最終ジャッジ日時 2024-06-28 07:20:25
合計ジャッジ時間 1,712 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

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