APPROX2 getting WA

Can somebody give me a test case for which my code is not giving correct answer?
My code CodeChef: Practical coding for everyone

This case gives a wrong output

1
2 1
1000000000 1000000000
1 Like