杭电OJ1094

杭电OJ1094

#include <iostream>
using namespace std;

int main()
{
            int a=0,n=0;
            while(cin>>n)
            {
                int c=0;
                while(n--)
                {
                    cin>>a;
                    c += a;
                }
                cout <<c<< endl;

            }

    return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_40076972/article/details/86634483