• <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)  編輯 收藏 引用 所屬分類: 題目分類:搜索
            久久精品国产亚洲AV蜜臀色欲| 久久夜色精品国产亚洲| 狠狠色丁香婷婷综合久久来来去| 一级做a爰片久久毛片人呢| 久久激情亚洲精品无码?V| 欧美亚洲国产精品久久高清| 久久精品国产亚洲AV电影| 久久91亚洲人成电影网站| 久久久久亚洲精品天堂久久久久久 | 久久久久亚洲AV无码专区体验| 久久精品国产亚洲沈樵| 欧美一级久久久久久久大片| 72种姿势欧美久久久久大黄蕉| 久久久久亚洲精品中文字幕| 久久w5ww成w人免费| 怡红院日本一道日本久久| 久久99热这里只有精品66| 久久成人精品视频| 欧美亚洲国产精品久久| 久久精品三级视频| 国产亚洲色婷婷久久99精品| 亚洲国产视频久久| 激情五月综合综合久久69| 77777亚洲午夜久久多喷| 亚洲午夜久久久影院| 人妻中文久久久久| 国产精品久久久天天影视香蕉 | 久久久久国产亚洲AV麻豆| 99久久精品国内| 久久无码人妻一区二区三区午夜| 日产久久强奸免费的看| 久久久艹| 欧美精品丝袜久久久中文字幕 | 国产精品一久久香蕉产线看| 无码超乳爆乳中文字幕久久| 久久久久亚洲av成人网人人软件 | 久久久无码精品亚洲日韩按摩 | 久久男人AV资源网站| 久久93精品国产91久久综合| 精品欧美一区二区三区久久久| 久久综合久久综合九色|