結果

問題 No.46 はじめのn歩
コンテスト
ユーザー megane_anko
提出日時 2021-04-02 23:36:48
言語 TypeScript
(6.0.2)
コンパイル:
tsc.sh -p tsconfig.json
実行:
node main.js ONLINE_JUDGE
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 293 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,556 ms
コンパイル使用メモリ 349,424 KB
実行使用メモリ 53,244 KB
最終ジャッジ日時 2026-06-05 05:43:54
合計ジャッジ時間 6,470 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import * as fs from 'fs';
const input = fs.readFileSync('/dev/stdin', 'utf8');

const ab_array = input.split(' ');
const a = parseInt(ab_array[0]);
const b = parseInt(ab_array[1]);

let result = null;

if (b > a) {
    result = Math.ceil(b / a);
} else {
    result = 1;
}
console.log(result);
0