結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー IH
提出日時 2021-01-08 19:56:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 129 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,068 KB
実行使用メモリ 53,544 KB
最終ジャッジ日時 2024-11-16 04:05:17
合計ジャッジ時間 2,050 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

# 2^x > n
# xlog2 > logn
# x = logn/log2
# x = log(n-2)

import math

print(math.ceil(math.log(n)/math.log(2)))
0