标签:
Input
Output
Sample Input
2 1 2 2 4
Sample Output
3 30
#include<stdio.h> int main () { int n,m,t; scanf("%d",&t); while(t--) { scanf("%d%d",&n,&m); printf("%d\n", n * (n + 1) / 2 * m * (m + 1) / 2); } return 0; }
标签:
原文地址:http://www.cnblogs.com/lsb666/p/5746935.html