• <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>
            #include? < iostream >

            using ? namespace ?std;

            int ??d[ 6 ];
            bool ?isok = ? false ;
            int ??total = ? 0 ;

            void ?Try(? int ?i,? int ?total?)
            {
            ????
            if ?(?total == ? 0 ?)
            ????
            {
            ????????isok
            = ? true ;
            ????????
            return ;
            ????}


            ????
            if ?(?i < ? 0 ?)? return ;

            ????
            for ?(? int ?j = ?d[i];?j >= ? 0 ;?j -- ?)
            ????
            {
            ????????
            if ?(?isok?)? break ;
            ????????
            if ?(?total - ?j * ?(i + ? 1 ) >= ? 0 ? && ? ! isok?)
            ????????????Try(?i
            - ? 1 ,?total - ?j * (i + ? 1 )?);
            ????}

            }


            int ?main()
            {
            ????
            int ?num = ? 1 ;
            ????
            while (?scanf( " %d%d%d%d%d%d " ,?d + ? 0 ,?d + ? 1 ,?d + ? 2 ,?d + ? 3 ,?d + ? 4 ,?d + ? 5 ?),
            ???????????d[
            0 ] + ?d[ 1 ] + ?d[ 2 ] + ?d[ 3 ] + ?d[ 4 ] + ?d[ 5 ] != ? 0 ?)
            ????
            {
            ????????total
            = ? 0 ;
            ????????
            for ?(? int ?i = ? 0 ;?i < ? 6 ;? ++ i?)
            ????????
            {
            ????????????d[i]
            %= ? 60 ;
            ????????????total
            += ?(i + 1 ) * ?d[i];
            ????????}


            ????????
            if ?(?total & ? 1 ?)
            ????????
            {
            ????????????printf(
            " Collection?#%d:\n " ,num ++ );
            ????????????printf(
            " Can't?be?divided.\n " );
            ????????????printf(
            " \n " );
            ????????????
            continue ;
            ????????}


            ????????isok
            = ? false ;
            ????????Try(?
            5 ,?total / ? 2 ?);

            ????????printf(
            " Collection?#%d:\n " ,num ++ );

            ????????
            if ?(? ! isok?)????????
            ????????????printf(
            " Can't?be?divided.\n " );
            ????????
            else
            ????????????printf(
            " Can?be?divided.\n " );
            ????????printf(
            " \n " );
            ????}


            ????
            return ? 0 ;
            }
            posted on 2008-10-01 15:38 Darren 閱讀(562) 評論(0)  編輯 收藏 引用 所屬分類: 搜索
            久久精品国产亚洲AV电影| 久久久久四虎国产精品| 久久久噜噜噜久久| 亚洲精品NV久久久久久久久久| 久久人人爽人人爽人人片AV麻豆| 色婷婷狠狠久久综合五月| 久久婷婷色综合一区二区| 久久九九亚洲精品| 久久乐国产精品亚洲综合 | 伊人久久大香线蕉成人| 久久91精品国产91| 久久无码av三级| 亚洲中文字幕久久精品无码喷水| 97精品国产91久久久久久| 精品久久国产一区二区三区香蕉| 久久午夜免费视频| 国产日韩久久久精品影院首页| 亚洲午夜久久久久久久久久| 久久精品中文字幕久久| 久久精品99久久香蕉国产色戒 | 久久国产视频99电影| 婷婷久久香蕉五月综合加勒比| 久久久久亚洲AV无码专区网站| 九九精品99久久久香蕉| 久久精品综合网| 欧美日韩中文字幕久久久不卡| 久久精品国产福利国产秒| 国产精品99精品久久免费| 久久精品国产亚洲AV久| 久久精品国产亚洲αv忘忧草| 久久男人中文字幕资源站| 国产69精品久久久久9999| 国产午夜久久影院| 久久久国产精品福利免费| 久久婷婷五月综合色高清| 亚洲精品高清国产一线久久| 少妇人妻综合久久中文字幕| 久久久久亚洲AV片无码下载蜜桃 | 91精品国产综合久久香蕉| 大伊人青草狠狠久久| 国内精品久久人妻互换|