• <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 閱讀(240) 評(píng)論(0)  編輯 收藏 引用 所屬分類: 題目分類:基礎(chǔ)/模擬
            久久久久久国产a免费观看不卡| 国产成人综合久久久久久| 亚洲中文久久精品无码| 久久天堂电影网| 久久亚洲国产精品123区| 久久精品免费一区二区| 国内精品久久久久久99蜜桃| 国产激情久久久久影院| 久久久久国产精品人妻| 亚洲一区二区三区日本久久九| 无码人妻少妇久久中文字幕 | 久久久精品午夜免费不卡| 久久精品国产亚洲精品| 久久久免费精品re6| 欧美久久亚洲精品| 久久99中文字幕久久| 久久精品综合网| 精品人妻伦一二三区久久| 久久中文骚妇内射| 2020国产成人久久精品| 久久99精品久久久久久噜噜| 久久精品国产网红主播| 综合网日日天干夜夜久久| 久久久久久亚洲精品不卡| 精品久久久久久久久中文字幕| 亚洲性久久久影院| 久久青青草原亚洲av无码| 国内精品久久久久影院免费| 天天爽天天狠久久久综合麻豆| 一本大道久久东京热无码AV| 国产农村妇女毛片精品久久| 久久婷婷久久一区二区三区| 久久人人爽人人爽人人AV东京热| 大香伊人久久精品一区二区| 国内精品伊人久久久久网站| 久久国产精品一区二区| 精品免费tv久久久久久久| 久久综合给合久久国产免费| 久久久久久久久波多野高潮| 久久综合给合综合久久| 久久无码人妻精品一区二区三区 |