For example, if you execute the following code in the python console:
The answer is -3. However, the OJ expects -2. This goes back to how languages decided to round integer division results. Read about it here: http://stackoverflow.com/questions/19517868/integer-division-by-negative-number
7/-3 should be treated in your solution as
-(7/3) which are two different results in python and OJ!