• <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)  編輯 收藏 引用 所屬分類: 題目分類:基礎/模擬
            久久一本综合| A狠狠久久蜜臀婷色中文网| 国产香蕉97碰碰久久人人| 99久久精品免费看国产一区二区三区 | 久久久免费观成人影院| 久久久国产视频| 久久精品国产亚洲综合色| 久久人人爽人人爽AV片| 亚洲va久久久噜噜噜久久 | 精品视频久久久久| 久久久噜噜噜久久中文字幕色伊伊 | 久久免费线看线看| 国内精品久久久久影院日本 | 久久精品综合一区二区三区| 国产精品久久网| 国产91色综合久久免费分享| 亚洲国产成人久久精品99| 久久综合视频网站| 99久久久精品免费观看国产| 久久99九九国产免费看小说| 99久久这里只精品国产免费| 色综合久久88色综合天天 | 一本久久免费视频| 99久久婷婷国产一区二区| 久久99精品久久久久久久不卡| 国产精品久久久久久五月尺| 国产精品成人精品久久久| 青青草原综合久久大伊人导航| 久久久久国产| 久久成人精品| 久久午夜无码鲁丝片| 久久综合香蕉国产蜜臀AV| 久久99精品九九九久久婷婷| 久久亚洲国产精品123区| 麻豆久久| 亚洲人成网站999久久久综合| 日日狠狠久久偷偷色综合96蜜桃| 丁香五月综合久久激情| 国内精品欧美久久精品| 欧美精品丝袜久久久中文字幕| 亚洲精品成人久久久|