⌨️

[AtCoder]ABC-215|B - log2(N)

2023/04/28に公開

設問ページ

提出結果

def getInt():
    return int(input())


def main():
    n = getInt()

    i = 0
    while 2 ** (i + 1) <= n:
        i += 1
    print(i)


if __name__ == "__main__":
    main()

Discussion