結果
問題 | No.46 はじめのn歩 |
ユーザー | f Ox |
提出日時 | 2021-04-12 09:47:24 |
言語 | JavaScript (node v21.7.1) |
結果 |
AC
|
実行時間 | 79 ms / 5,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 302 ms |
コンパイル使用メモリ | 5,292 KB |
実行使用メモリ | 42,396 KB |
最終ジャッジ日時 | 2023-09-10 15:55:23 |
合計ジャッジ時間 | 1,884 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 76 ms
42,336 KB |
testcase_01 | AC | 76 ms
42,132 KB |
testcase_02 | AC | 77 ms
42,124 KB |
testcase_03 | AC | 77 ms
42,304 KB |
testcase_04 | AC | 77 ms
42,216 KB |
testcase_05 | AC | 77 ms
42,368 KB |
testcase_06 | AC | 77 ms
42,216 KB |
testcase_07 | AC | 77 ms
42,124 KB |
testcase_08 | AC | 79 ms
42,396 KB |
testcase_09 | AC | 77 ms
42,300 KB |
ソースコード
function Main(input) { const data = input.split(" "); const a = data[0]; const b = data[1]; if (b%a===0){ console.log(b/a); } else { console.log(Math.floor(b/a)+1); } } Main(require("fs").readFileSync("/dev/stdin", "utf8"));