#include<iostream> #include<vector> usingnamespacestd; int a[101][1010], res[1010]; intmain(){ int m, n, maxres = 0; vector<int> v; cin >> n >> m; for (int i = 1; i <= m; i++) { for (int j = 1; j <= n; j++) { cin >> a[i][j]; res[j] += a[i][j]; if(res[j]>maxres) maxres =res[j]; } } cout << maxres << endl; for (int i = 1; i <= n; i++) if (res[i] == maxres) v.push_back(i); for (int i = 0; i < v.size(); i++) { if (i != 0) cout << " "; cout << v[i]; } return0;