1
0
mirror of https://github.com/Kiritow/OJ-Problems-Source.git synced 2024-03-22 13:11:29 +08:00
OJ-Problems-Source/HDOJ/2162_autoAC.cpp
2016-08-22 00:08:26 +08:00

18 lines
299 B
C++

#include <iostream>
using namespace std;
int main()
{
int n,k=1;
while((cin>>n)&&n>0)
{
int sum=0,x;
for(int i=0;i<n;i++)
{
cin>>x;
sum+=x;
}
cout<<"Sum of #"<<k++<<" is "<<sum<<endl;
}
return 0;
}