結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2021-04-02 23:36:48 |
言語 | TypeScript (5.7.2) |
結果 |
AC
|
実行時間 | 64 ms / 5,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 8,395 ms |
コンパイル使用メモリ | 229,732 KB |
実行使用メモリ | 41,332 KB |
最終ジャッジ日時 | 2024-12-31 16:37:28 |
合計ジャッジ時間 | 9,646 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
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);