#include #define int long long using namespace std; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; } signed main() { cin.tie(0); ios::sync_with_stdio(false); int N; cin>>N; vector> v(N); for(int i=0;i>k; v[i].resize(k); for(int j=0;j>v[i][j]; } } vector ans; for(int j=0;j<200;j++){ for(int i=0;i