标签:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 5187 Accepted Submission(s): 4034
#include<stdio.h> int main() { int t,n,m,s; scanf("%d",&t); while(t--) { scanf("%d%d",&n,&m); s=((n+1)*n/2)*((m+1)*m)/2); printf("%d\n",s); } return 0; }
标签:
原文地址:http://www.cnblogs.com/tonghao/p/4693919.html