cp-library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub kobejean/cp-library

:warning: cp_library/bit/ctz_fn.py

Code

import cp_library.bit.__header__

def ctz(x): return (~x & (x - 1)).bit_count()
'''
╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸
             https://kobejean.github.io/cp-library               
'''

def ctz(x): return (~x & (x - 1)).bit_count()
Back to top page