My issue
My code
#include <stdio.h>
int main(void) {
int T;
int X;
int Y;
int countj;
scanf("%d", &T);
for(int i = 0; i < T; i++)
{
scanf("%d %d ", &X , &Y);
for(int j = X; j < Y; j++)
{
countj++;
}
}
printf("%d",countj);
return 0;
}
Problem Link: VOLCONTROL Problem - CodeChef