Code Review: SPOJ solution of GRAVITY (3 Solutions!!)