<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> class Solution : <EOL> def sqrt ( self , x ) : <EOL> """<STR_LIT>""" <EOL> if x == <NUM_LIT:0> : return <NUM_LIT:0> <EOL> m = x <EOL> while True : <EOL> m_before = m <EOL> m = m - float ( m * m - x ) / ( <NUM_LIT:2> * m ) <EOL> if abs ( m - m_before ) < <NUM_LIT> : break <EOL> return int ( m ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> print Solution ( ) . sqrt ( <NUM_LIT:2> ) </s>
