hdoj 1093

来源:互联网 发布:cad手机绘图软件 编辑:程序博客网 时间:2024/05/20 06:57
#include<iostream>
using namespace std;
int main(void)
{
    int groups, total, temp, sum;
    cin >> groups;
    while (groups--)
    {
        total = temp = sum = 0;
        cin >> total;
        while (total--)
        {
            cin >> temp;
            sum += temp;
        }
        cout << sum << endl;
    }
    return 0;
}