mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
34806a93cd
2500-2599
16 lines
278 B
C++
16 lines
278 B
C++
#include <cstdio>
|
|
int main ()
|
|
{
|
|
int i;
|
|
int n, m;
|
|
int a[101] = {0};
|
|
for ( i=1 ; i<101 ; i++ )
|
|
a[i] = a[i - 1] + i;
|
|
scanf ("%d", &i);
|
|
while ( i-- )
|
|
{
|
|
scanf ("%d %d", &n, &m);
|
|
printf ("%d\n", a[n] * a[m]);
|
|
}
|
|
}
|