結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー intercept6
提出日時 2020-09-17 20:59:41
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 8,223 ms
コンパイル使用メモリ 228,444 KB
実行使用メモリ 39,552 KB
最終ジャッジ日時 2024-12-31 16:19:52
合計ジャッジ時間 10,027 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

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