problem code:- FFC219B

contest code:-FFC22019

#include

using namespace std;

#include<stdio.h>

int main()

{

long int T,L[100000],M[100000],tot[100000][100000],sum[100000],i,a1,a2,a3,a4,j;

```
cin>>T;
for(i=1;i<=T;++i)
{
a1=1;
a2=2;
a3=3;
a4=4;
cin>>L[i]>>M[i];
for(j=1;j<=M[i];++j)
{
tot[i][j]=a1*a2*a3*a4;
a1++;
a2++;
a3++;
a4++;
}
sum[i]=0;
for(j=L[i];j<=M[i];++j)
{
sum[i]+=tot[i][j];
}
}
for(i=1;i<=T;++i)
{
cout<<sum[i]<<"\n";
}
return 0;
```

}