Getting TLE on SPOJ problem...

I am getting TLE on http://www.spoj.com/problems/CIRCLE_E/

My code is here : http://pastebin.com/u01XLT8h

Please help . Thanks in advance :slight_smile:

//