• <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 閱讀(590) 評論(0)  編輯 收藏 引用 所屬分類: 題目分類:動態規劃
            久久中文娱乐网| 97久久久久人妻精品专区| 精品久久久久久无码人妻热| 爱做久久久久久| 欧美日韩久久中文字幕| 色欲久久久天天天综合网精品| 国产成人无码久久久精品一| 国产精品狼人久久久久影院 | 狠狠色噜噜色狠狠狠综合久久| 久久天天躁狠狠躁夜夜96流白浆| 久久综合九色综合久99| 久久精品国产欧美日韩99热| 久久久久成人精品无码中文字幕 | 国产99久久久国产精免费| 亚洲国产日韩综合久久精品| 97久久超碰国产精品2021| 日本精品一区二区久久久| 久久成人国产精品二三区| 伊人久久大香线蕉综合网站| 26uuu久久五月天| 国产亚洲综合久久系列| 亚洲午夜久久久| 久久久精品国产亚洲成人满18免费网站| 久久精品国产亚洲AV久| 久久福利片| yellow中文字幕久久网| 色综合久久88色综合天天| 久久精品亚洲中文字幕无码麻豆| 伊人久久大香线蕉综合热线| 理论片午午伦夜理片久久| 国产午夜精品久久久久九九| 久久久精品免费国产四虎| 精品蜜臀久久久久99网站| 无码人妻精品一区二区三区久久 | 亚洲AV无码成人网站久久精品大| 日韩影院久久| 久久精品无码一区二区WWW| 无码任你躁久久久久久久| 伊人精品久久久久7777| 波多野结衣久久精品| 久久婷婷色综合一区二区|