标签:
1 2 3 2
3 18
代码:
01.
#include<iostream>
02.
using
namespace
std;
03.
int
main()
04.
{
05.
long
long
int
a ,b;
06.
while
(cin>>a>>b)
07.
{
08.
long
long
int
suma=0,sumb=0,i;
09.
for
(i = 1;i < a+1;i++)
10.
suma+=i;
11.
for
(i = 1;i < b+1;i++)
12.
sumb+=i;
13.
cout<<suma*sumb<<endl;
14.
}
15.
return
0;
16.
}
标签:
原文地址:http://blog.csdn.net/u012701023/article/details/46013003