• <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
            簡單博弈。
            以下是我的代碼:
            /*
             * Author:  lee1r
             * Created Time:  2011/8/4 8:56:39
             * File Name: uva10407.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-11);
            typedef 
            long long int64;
            typedef unsigned 
            long long uint64;

            const int kMaxn(1000007);

            int n,m,r[kMaxn];
            bool d[kMaxn];

            int main()
            {
                
            //freopen("data.in","r",stdin);
                
                
            while(scanf("%d%d",&n,&m)==2)
                {
                    
            for(int i=1;i<=m;i++)
                        scanf(
            "%d",&r[i]);
                    d[
            0]=false;
                    
            for(int i=1;i<=n;i++)
                    {
                        d[i]
            =false;
                        
            for(int j=1;j<=m;j++)
                            
            if(i-r[j]>=0)
                                
            if(d[i-r[j]]==false)
                                {
                                    d[i]
            =true;
                                    
            break;
                                }
                    }
                    
            if(d[n])
                        printf(
            "Stan wins\n");
                    
            else
                        printf(
            "Ollie wins\n");
                }
                
                
            return 0;
            }
            posted on 2011-08-04 09:33 lee1r 閱讀(598) 評論(0)  編輯 收藏 引用 所屬分類: 題目分類:動態規劃
            伊人久久大香线蕉亚洲| 久久99国产精品99久久| 香蕉久久久久久狠狠色| 久久久国产打桩机| 亚洲国产精品婷婷久久| 亚洲国产成人久久笫一页| 国产亚洲综合久久系列| 91精品无码久久久久久五月天| 天天综合久久一二三区| 国产精品久久久久国产A级| 久久夜色精品国产www| 99久久99久久精品免费看蜜桃| 欧美精品福利视频一区二区三区久久久精品| 久久精品夜色噜噜亚洲A∨| 久久国产精品99国产精| 国产精品99久久久精品无码| 久久夜色精品国产亚洲| 青青草原精品99久久精品66| 婷婷久久综合| 久久99精品久久久久久不卡| 久久国产精品99国产精| 亚洲乱码中文字幕久久孕妇黑人| 久久av免费天堂小草播放| 久久99热只有频精品8| 亚洲成色WWW久久网站| 亚洲国产精品综合久久网络| 久久久久九国产精品| 草草久久久无码国产专区| 国产韩国精品一区二区三区久久| 亚洲va国产va天堂va久久| 久久午夜福利无码1000合集| 人妻中文久久久久| 久久综合久久性久99毛片| 四虎亚洲国产成人久久精品| 久久AAAA片一区二区| 色综合合久久天天给综看| 精品久久久久久久久免费影院| 欧美久久久久久| 久久精品国产亚洲AV忘忧草18 | 久久久久久久久66精品片| 久久久无码精品午夜|