```cpp
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int main(){
int n,x,y,sum;
cin>>n;
for(int i=1;i<=n;i)
{
sum=0;//把和的初值赋在外循环,保证每次外层循环初始和为0,若加到循环外,和会跟着每次的内层循环越来越大
cin>>x>>y;
if(x>y){
swap(x,y);
}
for(int j=x+1;j<y;j)
{
if(j%2!=0){
sum+=j;
}
}
cout<<sum<<endl;
}
return 0;
}