• <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 閱讀(605) 評論(0)  編輯 收藏 引用 所屬分類: 題目分類:動態規劃
            精品无码久久久久久久动漫| 国产精品久久久久天天影视 | 精品国产乱码久久久久久人妻| 久久精品国产99久久丝袜| 日日狠狠久久偷偷色综合0| 狠狠色狠狠色综合久久| 精品亚洲综合久久中文字幕| 久久se精品一区精品二区国产| 亚洲国产天堂久久久久久| www.久久99| 国产精品久久新婚兰兰| 国产精品久久自在自线观看| 伊人热热久久原色播放www| 精品永久久福利一区二区| 人妻少妇精品久久| 99久久99这里只有免费的精品| 亚洲а∨天堂久久精品| 91精品国产91久久久久久青草| 久久精品免费一区二区| 久久精品无码一区二区app| 久久99国产综合精品女同| 国产精品久久久久久五月尺| 久久精品二区| 青青热久久综合网伊人| 久久夜色精品国产网站| 久久精品日日躁夜夜躁欧美| 人妻少妇久久中文字幕| 久久久久国产精品人妻| 久久精品国产亚洲av高清漫画| 久久ww精品w免费人成| 思思久久精品在热线热| 亚洲欧美一级久久精品| 国产成人精品久久一区二区三区av| 久久夜色精品国产亚洲| 中文字幕无码精品亚洲资源网久久 | 久久国产免费直播| 影音先锋女人AV鲁色资源网久久| 国产精品久久亚洲不卡动漫| 亚洲AV无码一区东京热久久| 久久久久久亚洲精品不卡| 久久天天躁狠狠躁夜夜网站|