結果

問題 No.1176 少ない質問
ユーザー uni_python
提出日時 2020-08-21 21:27:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 450 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-10-15 05:08:16
合計ジャッジ時間 1,684 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    A=I()
    p=1
    cnt=0
    ans=0
    while True:
        if p>=A:
            break
        elif p*3>=A*2:
            ans+=1
            break
        else:
            p*=2
            cnt+=1
        
    ans+=2*cnt
    print(ans)
            
    


main()
0