結果

問題 No.46 はじめのn歩
ユーザー megane_ankomegane_anko
提出日時 2021-04-02 23:36:48
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 293 bytes
コンパイル時間 10,741 ms
コンパイル使用メモリ 252,112 KB
実行使用メモリ 42,524 KB
最終ジャッジ日時 2023-08-25 14:12:28
合計ジャッジ時間 9,551 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
42,140 KB
testcase_01 AC 75 ms
41,924 KB
testcase_02 AC 71 ms
42,196 KB
testcase_03 AC 75 ms
42,116 KB
testcase_04 AC 71 ms
42,120 KB
testcase_05 AC 75 ms
42,140 KB
testcase_06 AC 72 ms
41,920 KB
testcase_07 AC 74 ms
41,924 KB
testcase_08 AC 75 ms
42,524 KB
testcase_09 AC 74 ms
41,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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