Untitled

 avatar
unknown
plain_text
2 years ago
345 B
5
Indexable
#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;
}
Editor is loading...