結果

問題 No.388 階段 (1)
ユーザー intercept6intercept6
提出日時 2020-07-16 15:15:00
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 10,509 ms
コンパイル使用メモリ 250,776 KB
実行使用メモリ 44,284 KB
最終ジャッジ日時 2023-08-16 08:04:40
合計ジャッジ時間 12,139 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
42,316 KB
testcase_01 AC 74 ms
42,220 KB
testcase_02 AC 75 ms
42,244 KB
testcase_03 AC 72 ms
42,280 KB
testcase_04 AC 76 ms
42,312 KB
testcase_05 AC 73 ms
42,220 KB
testcase_06 AC 75 ms
42,312 KB
testcase_07 AC 73 ms
42,192 KB
testcase_08 AC 73 ms
42,240 KB
testcase_09 AC 74 ms
42,224 KB
testcase_10 AC 75 ms
42,316 KB
testcase_11 AC 77 ms
42,244 KB
testcase_12 AC 74 ms
44,284 KB
testcase_13 AC 74 ms
42,276 KB
testcase_14 AC 74 ms
42,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import { readFileSync } from 'fs';

function Main(input: string) {
  const data = input.split('\n');

  const firstLine = data[0].split(' ');
  const s = Number(firstLine[0]);
  const f = Number(firstLine[1]);

  console.log(Math.floor(s / f) + 1);
}

Main(readFileSync('/dev/stdin', 'utf8'));
0