I am new to codechef i am trying a very simple program however i get wrong answer everytime i run it on IDE it prints the correct output. Can someone point out where is the mistake? I am trying this problem http://www.codechef.com/CDOT2015/problems/CDOUT2/

#include <stdio.h>

int main(void)

{

int t;

long long int n,k,c;

scanf("%d",&t);

```
while(t--)
{
scanf("%lld %lld",&n,&k);
if(n==k)
c=((n+k)+(n*k));
else
{
c=n*k*2;
}
printf("%lld \n",c);
}
return 0;
```

}