⌨️

[AtCoder]ABC-336|B - CTZ

2024/03/12に公開

設問ページ

提出結果

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


def ctz(i):
    b = bin(i)[::-1]

    return b.find('1') if i > 0 else 1


def main():
    n = getInt()

    print(ctz(n))


if __name__ == "__main__":
    main()

Discussion