[LEAD GAME]Please help getting wrong answer

I tried this program on my compiler with different test cases, It worked fine. But it is showing wrong answer on CodeChef. Here is the link to the solution ->
http://www.codechef.com/viewsolution/5437498

Yoy have written

if(abs(d-e)>abs(c))
        {   c=a[t]-b[t];
        }

Instead it should be

if(abs(d-e)>abs(c))
        {   c=d-e;                              
        }
1 Like

it worked thanks…(y)