• <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 閱讀(245) 評論(0)  編輯 收藏 引用 所屬分類: 題目分類:基礎/模擬
            国产精久久一区二区三区| 99精品国产99久久久久久97| 国产日韩欧美久久| 久久久噜噜噜久久中文字幕色伊伊 | 国产激情久久久久影院小草| 怡红院日本一道日本久久 | 久久精品成人免费网站| 久久无码精品一区二区三区| 久久综合综合久久综合| 精品免费久久久久国产一区| 久久夜色精品国产网站| 久久综合日本熟妇| 青青青青久久精品国产| 狠狠色综合网站久久久久久久高清| 成人综合伊人五月婷久久| 久久亚洲精品成人无码网站| 国产成人无码精品久久久免费| 囯产极品美女高潮无套久久久 | 久久青青草原精品影院| 狠狠88综合久久久久综合网| 国产精品久久新婚兰兰| 久久婷婷五月综合97色直播| 26uuu久久五月天| 欧美久久综合性欧美| 久久国产精品无码一区二区三区 | 77777亚洲午夜久久多人| 亚洲AV伊人久久青青草原| 久久精品国产亚洲av瑜伽| 久久精品免费观看| 久久综合中文字幕| 精品亚洲综合久久中文字幕| 精品久久久久久无码中文字幕一区| 一级做a爰片久久毛片看看| 久久青青草原精品国产不卡| 久久国产成人亚洲精品影院| 久久国产精品波多野结衣AV | 亚洲乱码中文字幕久久孕妇黑人| 国产69精品久久久久APP下载 | 思思久久99热只有频精品66| 天堂无码久久综合东京热| 伊人久久精品影院|