#include<bits/stdc++.h>
using namespace std;
using gg = long long;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
gg ai,bi,ci;
cin>>ai>>bi;
vector<gg> v(ai);
while(bi--){
for(int i=0;i<v.size();++i){
cin>>ci;
v[i]+=ci;
}
}
gg ans = *max_element(v.begin(),v.end());
cout<< ans<<endl;
bool space = false;
for(int i =0;i<v.size();++i){
if(v[i]==ans){
cout<<(space ? " ":"")<<(i+1);
space = true;
}
}
return 0;
}
1092 最好吃的月饼 (20 分)
最新推荐文章于 2024-05-04 00:02:26 发布