#include<iostream>
using namespace std;
int main(){
int ts;
cin>>ts;
for(int i=0;i<ts-1;i++){
int n,a,b;
while(cin>>n){
int sum = 0;
while(n--){
int t;
cin>>t;
sum+=t;
}
cout<<sum<<endl<<endl;
}
}
int n,a,b;
cin>>n;
int sum = 0;
while(n--){
int t;
cin>>t;
sum+=t;
}
cout<<sum<<endl;
return 0;
}
时间: 2024-12-28 16:37:53