結果

問題 No.46 はじめのn歩
ユーザー Rim_EarthLights
提出日時 2023-05-10 16:56:28
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 65 ms / 5,000 ms
コード長 370 bytes
コンパイル時間 8,217 ms
コンパイル使用メモリ 230,276 KB
実行使用メモリ 39,552 KB
最終ジャッジ日時 2024-12-31 16:49:03
合計ジャッジ時間 9,536 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

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