#include using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n; cin >> n; vector > Q; vector R; REP (i, 1< tmp(n); REP (j, n) cin >> tmp[j]; Q.push_back(tmp); int r; cin >> r; R.push_back(r); } int sum = 0; REP (i, 1<