結果

問題 No.1176 少ない質問
ユーザー kozy
提出日時 2020-08-21 21:29:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 481 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-10-15 05:12:37
合計ジャッジ時間 1,521 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math
sys.setrecursionlimit(10 ** 7)
def input() : return sys.stdin.readline().strip()
def INT()   : return int(input())
def MAP()   : return map(int,input().split())
def LIST()  : return list(MAP())
def NIJIGEN(H): return [list(input()) for i in range(H)]
ans=0
N=int(input())
s=N
while True:
    ans+=1
    N=N//2
    if N==1:
        break
if 2**ans<s:
    if 3*(2**(ans-1))>=s:
        print((2*ans)+1)
    else:
        print(2*(ans+1))
else:
    print(2*ans)
0