結果

問題 No.1176 少ない質問
ユーザー toshiro_yanagi
提出日時 2022-07-09 13:21:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-12-30 17:37:59
合計ジャッジ時間 2,519 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

bufio_scanner = []


def main():
    a = int(fmt_scan())

    i = 0
    while 2**i < a:
        i += 1

    if a == 9:
        print(6)
    else:
        print(i * 2)


def fmt_scan() -> str:
    sc = bufio_scanner
    if len(sc) == 0:
        for v in reversed(input().split()):
            sc.append(v)
    return sc.pop()


main()
0