• <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)  編輯 收藏 引用 所屬分類: 題目分類:動態規劃
            久久被窝电影亚洲爽爽爽| 狠狠色丁香婷婷综合久久来| AA级片免费看视频久久| 国产精品久久久99| 亚洲天堂久久久| 久久国产精品一国产精品金尊| 久久青青草原综合伊人| 中文精品99久久国产| 成人综合伊人五月婷久久| 色综合久久88色综合天天 | 久久综合狠狠综合久久综合88| 国产免费福利体检区久久| 久久久久亚洲AV无码观看 | 亚洲va久久久噜噜噜久久狠狠| 日韩人妻无码精品久久免费一 | 91精品免费久久久久久久久| 午夜精品久久久久久影视777| 成人综合伊人五月婷久久| 中文精品久久久久人妻| 久久狠狠一本精品综合网| 久久精品无码一区二区无码| 国产一区二区久久久| 久久免费视频一区| 久久夜色tv网站| 国产精品视频久久久| 午夜不卡久久精品无码免费| 欧美精品九九99久久在观看| 国产精品亚洲美女久久久| 九九久久99综合一区二区| 99久久超碰中文字幕伊人| 久久亚洲精品成人av无码网站| 中文无码久久精品| 久久婷婷午色综合夜啪| 久久综合久久综合亚洲| 亚洲国产成人久久一区久久| 久久强奷乱码老熟女网站| 久久无码AV中文出轨人妻| 久久亚洲国产成人精品无码区| 久久无码AV中文出轨人妻| 麻豆国内精品久久久久久| 女同久久|