#include<stdio.h>
int main()
{
long long m,n,t;
while(~scanf("%lld%lld",&m,&n))
{
t=m*(m+1)/2*n*(n+1)/2;
printf("%lld\n",t);
}
}
时间: 2024-10-14 05:37:49
#include<stdio.h>
int main()
{
long long m,n,t;
while(~scanf("%lld%lld",&m,&n))
{
t=m*(m+1)/2*n*(n+1)/2;
printf("%lld\n",t);
}
}