Your IP : 18.221.217.100
���]#
� @ s{ d d d d � Z e Z d d d d � Z e Z d d d d � Z d d d d � Z y d d
l TWn e k
rv Yn Xd S)� Nc C s� | d k r t d � � | d k r0 t | � } xA | | k rs | | d } | | | k rf | } q3 | d } q3 W| j | | � d S)Nr zlo must be non-negative� � )�
ValueError�len�insert)�a�x�lo�hi�mid� r �+/opt/alt/python35/lib64/python3.5/bisect.py�insort_right s r c C sx | d k r t d � � | d k r0 t | � } xA | | k rs | | d } | | | k rf | } q3 | d } q3 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 s� | d k r t d � � | d k r0 t | � } xA | | k rs | | d } | | | k rj | d } q3 | } q3 W| j | | � 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 | d k r t d � � | d k r0 t | � } xA | | k rs | | d } | | | k rj | d } q3 | } q3 W| S)Nr zlo must be non-negativer r )r r )r r r r
r r r r
�bisect_leftC s
r )�*)r Zinsortr Zbisectr r Z_bisect�ImportErrorr r r r
�<module> s