#include
void main()
{
int a,b,T,i;
int res[100]={0};
scanf("%d", &T);
for( i=0;i{
scanf("%d %d", &a, &b);
do{
res[i] += a++;
}while( a <= b );
}
for( i=0;iprintf("%d\n", res[i] );
}
#include
void main()
{
int a,b,T,i;
int res[100]={0};
scanf("%d", &T);
for( i=0;i{
scanf("%d %d", &a, &b);
do{
res[i] += a++;
}while( a <= b );
}
for( i=0;iprintf("%d\n", res[i] );
}