本题主要是考察我们的公式
sum=A*(A+1)/2*B*(B+1)/2
代码如下:
#include int main() { int count; double A,B; while(scanf("%lf%lf",&A,&B)!=EOF) { printf("%.0lf\\\\n",A*(A+1)*B*(B+1)/4); } return 0; }