結果

問題 No.46 はじめのn歩
ユーザー Rim_EarthLightsRim_EarthLights
提出日時 2023-05-10 16:56:28
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 370 bytes
コンパイル時間 8,953 ms
コンパイル使用メモリ 254,724 KB
実行使用メモリ 44,308 KB
最終ジャッジ日時 2023-08-17 21:26:21
合計ジャッジ時間 10,738 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
42,184 KB
testcase_01 AC 78 ms
42,212 KB
testcase_02 AC 79 ms
42,328 KB
testcase_03 AC 79 ms
42,372 KB
testcase_04 AC 80 ms
42,416 KB
testcase_05 AC 79 ms
42,208 KB
testcase_06 AC 77 ms
42,200 KB
testcase_07 AC 78 ms
44,308 KB
testcase_08 AC 78 ms
42,468 KB
testcase_09 AC 78 ms
42,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"use strict";
import { readFileSync } from "fs";

const main = (arg: string) => {
  const input = arg
    .trim()
    .split("\n")
    .map((i) => i.split(" "));

  const walk = Number(input[0][0]);
  const goal = Number(input[0][1]);

  console.log(Math.ceil(goal / walk));
};

// debug
// main(["2 5"].join("\n"));
// release
main(readFileSync("/dev/stdin", "utf8"));
0