杭电OJ1093(输入输出)

杭电OJ1093(输入输出)


#include <iostream>
using namespace std;

int main()
{
    int t=0,a=0;

        cin>>t;

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



    return 0;
}


猜你喜欢

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