結果

問題 No.388 階段 (1)
ユーザー 濱田孝治濱田孝治
提出日時 2020-07-16 15:23:52
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 534 bytes
コンパイル時間 8,980 ms
コンパイル使用メモリ 255,432 KB
実行使用メモリ 42,400 KB
最終ジャッジ日時 2023-08-16 08:28:12
合計ジャッジ時間 11,159 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
42,140 KB
testcase_01 AC 76 ms
42,164 KB
testcase_02 AC 76 ms
42,164 KB
testcase_03 AC 76 ms
42,244 KB
testcase_04 AC 76 ms
42,172 KB
testcase_05 AC 76 ms
42,168 KB
testcase_06 AC 76 ms
42,400 KB
testcase_07 AC 78 ms
42,164 KB
testcase_08 AC 76 ms
42,160 KB
testcase_09 AC 78 ms
42,316 KB
testcase_10 AC 77 ms
42,208 KB
testcase_11 AC 77 ms
42,168 KB
testcase_12 AC 76 ms
42,172 KB
testcase_13 AC 76 ms
42,324 KB
testcase_14 AC 75 ms
42,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  // inputにはすべての入力の文字列が与えられるので必要に応じて input.split("\n") などで分割する。
  let data = input.split("\n");
  let first_line = data[0].split(" ");
  let a: number = first_line[0];
  let b: number = first_line[1];

  let answer: number = Math.ceil(a / b);
  if (a % b == 0) {
    answer += 1;
  }

  //console.log(Math.ceil(b / a).toString());
  console.log('%d', answer);
}

// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0