谭雅 2013-07-17 21:01:00
点我顶贴
收藏
删除
#include<iostream>
using namespace std;
int main()
{
int a[100][100]={0},n,m,b[100]={0},c[100]={0},max=0;
cin>>n>>m;
for(int i=0;i<n;i++)
for(int j=0;j<m;j++){
cin>>a[i][j];
if(a[i][j]==1){
b[i]++;
c[j]++;
}
}
for(int i=0;i<n;i++)
for(int j=0;j<m;j++)
if(b[i]+c[j]>max)max=b[i]+c[j];
cout<<max;
return 0;
}
状态: Unaccepted
测评机: Xeond[6]
得分: 60分
提交日期: 2013-7-14 14:42:00
有效耗时: 344毫秒
测试结果1: 选手程序运行超过时限
测试结果2: 选手程序无输出
测试结果3: 选手程序无输出
测试结果4: 选手程序无输出
测试结果5: 通过本测试点|有效耗时47ms
测试结果6: 通过本测试点|有效耗时63ms
测试结果7: 通过本测试点|有效耗时47ms
测试结果8: 通过本测试点|有效耗时62ms
测试结果9: 通过本测试点|有效耗时47ms
测试结果10: 通过本测试点|有效耗时78ms