My issue
i am getting same solution for every problem i open as default help me fix this bug please
My code
#include <stdio.h>
int main(void) {
int T,N,M,l,k;
scanf("%d",&T);
while(T--){
scanf("%d%d",&N,&M);
if(M>N){
l=M-N;
printf("%d\n",l);
}
else if(M<N){
k=(N*2)-M;
printf("%d\n",k);
}
else{
printf("%d\n",M*2);
}
}
return 0;
}
Problem Link: CABS Problem - CodeChef