Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
345 B
2
Indexable
Never
#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here
	int n;
	cin>>n;
	
	vector<int>ans;
	int sum=0;
	for(int i=0;i<n;i++){
	    for(int j=0;j<7;j++){
	        int temp;
	        cin>>temp;
	        sum+=temp;
	        
	    }
	    ans.push_back(sum);
	    sum=0;
	}
	
	for(auto it:ans)cout<<it<<" ";

	return 0;
}