관리-도구
편집 파일: bisect.cpython-37.opt-2.pyc
B YI~d� � @ sV ddd�Z ddd�Zd dd�Zddd �Zyd d lT W n ek rH Y nX eZe ZdS )� Nc C sd |dk rt d��|d kr t| �}x2||k rR|| d }|| | k rH|}q"|d }q"W | �||� d S )Nr zlo must be non-negative� � )� ValueError�len�insert)�a�x�lo�hi�mid� r �+/opt/alt/python37/lib64/python3.7/bisect.py�insort_right s r c C sX |dk rt d��|d kr t| �}x2||k rR|| d }|| | k rH|}q"|d }q"W |S )Nr zlo must be non-negativer r )r r )r r r r r r r r �bisect_right s r c C sd |dk rt d��|d kr t| �}x2||k rR|| d }| | |k rL|d }q"|}q"W | �||� d S )Nr zlo must be non-negativer r )r r r )r r r r r r r r �insort_left+ s r c C sX |dk rt d��|d kr t| �}x2||k rR|| d }| | |k rL|d }q"|}q"W |S )Nr zlo must be non-negativer r )r r )r r r r r r r r �bisect_left? s r )�*)r N)r N)r N)r N)r r r r Z_bisect�ImportErrorZbisectZinsortr r r r �<module> s