APPROX2 getting WA

Can somebody give me a test case for which my code is not giving correct answer?
My code http://www.codechef.com/viewsolution/4110093

This case gives a wrong output

1
2 1
1000000000 1000000000
1 Like