• <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
            2985ms AC。
            以下是我的代碼:
            /*
             * Author:  lee1r
             * Created Time:  2011/8/6 10:45:18
             * File Name: poj2531.cpp
             
            */
            #include
            <iostream>
            #include
            <sstream>
            #include
            <fstream>
            #include
            <vector>
            #include
            <list>
            #include
            <deque>
            #include
            <queue>
            #include
            <stack>
            #include
            <map>
            #include
            <set>
            #include
            <bitset>
            #include
            <algorithm>
            #include
            <cstdio>
            #include
            <cstdlib>
            #include
            <cstring>
            #include
            <cctype>
            #include
            <cmath>
            #include
            <ctime>
            #define L(x) ((x)<<1)
            #define R(x) (((x)<<1)+1)
            #define Half(x) ((x)>>1)
            #define lowbit(x) ((x)&(-(x)))
            using namespace std;
            const int kInf(0x7f7f7f7f);
            const double kEps(1e-8);
            typedef 
            long long int64;
            typedef unsigned 
            long long uint64;

            const int kMaxn(27);

            int n,g[kMaxn][kMaxn];
            bool d[kMaxn];
            int64 ans;

            void dfs(int depth)
            {
                
            if(depth>n)
                {
                    
            int now(0);
                    
            for(int i=2;i<=n;i++)
                        
            for(int j=1;j<i;j++)
                            
            if(d[i]==!d[j])
                                now
            +=g[i][j];
                    
            if(ans<now)
                        ans
            =now;
                    
            return;
                }
                d[depth]
            =true;
                dfs(depth
            +1);
                d[depth]
            =false;
                dfs(depth
            +1);
            }

            int main()
            {
                
            //freopen("data.in","r",stdin);
                
                
            while(scanf("%d",&n)==1)
                {
                    
            for(int i=1;i<=n;i++)
                        
            for(int j=1;j<=n;j++)
                            scanf(
            "%d",&g[i][j]);
                    
                    ans
            =0;
                    memset(d,
            false,sizeof(d));
                    dfs(
            1);
                    
                    cout
            <<ans<<endl;
                }
                
                
            return 0;
            }
            posted on 2011-08-06 11:00 lee1r 閱讀(574) 評論(0)  編輯 收藏 引用 所屬分類: 題目分類:搜索
            久久笫一福利免费导航| 久久精品aⅴ无码中文字字幕不卡| 久久99国产精品成人欧美| 99久久99久久久精品齐齐| 国内精品久久久久久久97牛牛| 少妇内射兰兰久久| 久久精品国产福利国产秒| 天天爽天天爽天天片a久久网| 国产精品久久成人影院| 777久久精品一区二区三区无码| 青青草国产精品久久久久| 亚洲国产精品久久久久婷婷软件 | 久久国产精品二国产精品| 97久久超碰国产精品2021| 狠狠久久亚洲欧美专区| 91精品国产91久久久久久青草 | 国产亚州精品女人久久久久久 | 亚洲性久久久影院| 久久精品中文无码资源站| 青青青伊人色综合久久| 欧美久久久久久精选9999| 无码人妻久久一区二区三区蜜桃| 久久综合亚洲鲁鲁五月天| 精品久久8x国产免费观看| 久久精品国产亚洲精品| 亚洲精品无码久久久影院相关影片 | 亚洲v国产v天堂a无码久久| 亚洲va中文字幕无码久久不卡| 99久久国产综合精品网成人影院| 亚洲国产精品无码久久青草| 天天做夜夜做久久做狠狠| 国产精品美女久久久| 无码人妻久久一区二区三区蜜桃 | 久久综合色老色| 久久男人中文字幕资源站| 国产精品久久久亚洲| 亚洲欧洲精品成人久久曰影片| 免费观看久久精彩视频| 色狠狠久久AV五月综合| 久久精品女人天堂AV麻| 99久久人妻无码精品系列蜜桃|