• <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 閱讀(606) 評論(0)  編輯 收藏 引用 所屬分類: 題目分類:動態規劃
            色综合久久最新中文字幕| 亚洲精品无码成人片久久| 精品久久久久久99人妻| 婷婷久久综合九色综合绿巨人| 女同久久| 日本免费一区二区久久人人澡| 婷婷久久综合| 99久久国产综合精品网成人影院| 久久乐国产综合亚洲精品| 青青青青久久精品国产h| 伊人久久大香线蕉综合影院首页 | 色综合色天天久久婷婷基地| 日日躁夜夜躁狠狠久久AV| 欧美午夜A∨大片久久 | 亚洲国产精品久久久久网站| 久久婷婷五月综合色奶水99啪 | 婷婷国产天堂久久综合五月| 国产成人精品久久综合 | 久久99国产精品久久99果冻传媒| 久久婷婷五月综合97色直播| 久久av免费天堂小草播放| 99久久精品影院老鸭窝| 国产∨亚洲V天堂无码久久久| 精品国产青草久久久久福利| 狠狠色丁香久久婷婷综合_中| 久久九九免费高清视频| 国内精品久久久久影院网站| 国产欧美久久一区二区| 久久人人爽人人爽人人片av高请| 久久精品aⅴ无码中文字字幕不卡| 伊人色综合九久久天天蜜桃 | 国产精品美女久久久久网| 国产午夜福利精品久久2021| 久久亚洲私人国产精品vA| 久久香蕉超碰97国产精品| 久久久久亚洲精品天堂| 久久久一本精品99久久精品66| 久久精品国产亚洲AV无码偷窥| 久久久久免费看成人影片| 99久久精品国产免看国产一区| 久久久国产精品福利免费|