結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー intercept6intercept6
提出日時 2020-09-17 20:59:41
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 7,540 ms
コンパイル使用メモリ 252,796 KB
実行使用メモリ 44,324 KB
最終ジャッジ日時 2023-09-04 07:33:00
合計ジャッジ時間 11,024 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
42,200 KB
testcase_01 AC 80 ms
42,300 KB
testcase_02 AC 81 ms
42,392 KB
testcase_03 AC 81 ms
42,268 KB
testcase_04 AC 79 ms
42,296 KB
testcase_05 AC 80 ms
42,324 KB
testcase_06 AC 80 ms
42,196 KB
testcase_07 AC 80 ms
42,308 KB
testcase_08 AC 82 ms
42,188 KB
testcase_09 AC 81 ms
42,356 KB
testcase_10 AC 80 ms
42,196 KB
testcase_11 AC 80 ms
42,252 KB
testcase_12 AC 79 ms
42,296 KB
testcase_13 AC 80 ms
42,196 KB
testcase_14 AC 81 ms
42,232 KB
testcase_15 AC 79 ms
42,268 KB
testcase_16 AC 80 ms
42,376 KB
testcase_17 AC 81 ms
44,324 KB
testcase_18 AC 80 ms
42,168 KB
testcase_19 AC 80 ms
42,216 KB
testcase_20 AC 80 ms
42,336 KB
testcase_21 AC 79 ms
42,280 KB
testcase_22 AC 80 ms
42,360 KB
testcase_23 AC 81 ms
42,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import { readFileSync } from 'fs';

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

  const wantBiscuits = parseInt(data[0]);
  const needStrike = Math.ceil(Math.log2(wantBiscuits));
  console.log(needStrike);
}

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