• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            心如止水
            Je n'ai pas le temps
            posts - 400,comments - 130,trackbacks - 0
            Find the row having the largest number of cribbers,and similarly find the rank.Adding two numbers up is okay.
            Here is my code:
            #include<iostream>
            #include
            <string.h>
            #define maxn 101
            using namespace std;
            long n,m,maxx,maxy,x[maxn],y[maxn];
            bool r[maxn][maxn];
            int main()
            {
                memset(x,
            0,sizeof(x));
                memset(y,
            0,sizeof(y));
                cin
            >>n>>m;
                
            for(long i=1;i<=n;i++)
                    
            for(long j=1;j<=m;j++)
                    {
                        cin
            >>r[i][j];
                        
            if(r[i][j])
                        {
                            x[i]
            ++;y[j]++;
                        }
                    }
                
            //  Input
                maxx=maxy=0;
                
            for(long i=1;i<=n;i++)
                    
            if(maxx<x[i])
                        maxx
            =x[i];
                
            for(long i=1;i<=m;i++)
                    
            if(maxy<y[i])
                        maxy
            =y[i];
                cout
            <<maxx+maxy<<endl;
            return 0;
            }


            posted on 2010-09-27 22:39 lee1r 閱讀(255) 評論(0)  編輯 收藏 引用 所屬分類: 題目分類:基礎(chǔ)/模擬
            亚洲国产美女精品久久久久∴| 久久久久久国产精品无码下载| 日韩乱码人妻无码中文字幕久久| 久久综合成人网| 久久久久国产| 久久精品国产亚洲Aⅴ蜜臀色欲| 久久se精品一区精品二区| 精品久久久久久无码专区| 天天躁日日躁狠狠久久| 久久久女人与动物群交毛片| 亚洲色欲久久久综合网| 久久人人爽人人爽人人av东京热| 久久综合视频网站| 青青草原综合久久大伊人| 国产精品久久久久蜜芽| 精产国品久久一二三产区区别| 亚洲欧洲精品成人久久曰影片 | 狠狠色丁香婷婷久久综合| 日本精品久久久久影院日本| 久久这里都是精品| 人妻少妇久久中文字幕| 久久99国产精品一区二区| 国产成人精品综合久久久| 超级97碰碰碰碰久久久久最新| 亚洲欧美伊人久久综合一区二区| 国产综合久久久久| 久久综合给合综合久久| 久久大香香蕉国产| 久久久黄片| 久久久久AV综合网成人| 久久久无码精品午夜| 99久久国产热无码精品免费| 久久99亚洲综合精品首页| yy6080久久| 久久国产精品免费一区| 久久综合久久自在自线精品自| 99精品久久久久久久婷婷| 久久这里只有精品18| 久久久91人妻无码精品蜜桃HD| 久久国产色AV免费观看| 国产精品美女久久福利网站|