杭电oj
杭电oj1092
#include <iOStream>
using namespace std;
int main()
{
int t=0,a=0;
while(1)
{
int c=0;
cin>>t;
if(t==0)
break;
while(t--)
{
cin>>a;
c += a;
}
cout <<c<< endl;
}
return 0;
}
相关阅读
转自:http://blog.csdn.net/jeffashan/article/details/41687347 杭电ACM2000题,对原来别人的的博客内容略有修改。 题目描述是:输入
When the old year is leaving and the New Year is coming, people are always looking back over the past while looking f
Bone Collector Time Limit: 2000/1000 MS (Java/Others)