• <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>

            JonsenElizee

            Software Developing Blog

            "An idea is fragile . It can be killed by a scornful smile or a yawn .It can be mound down by irony and scared to death by a cold look."
            "Most cultures throughout human history have not liked creative individuals .They ignore them or kill them.It is a very efficient way of stopping creativity."

            ------Advertising boss Charles Browe and Howard Gardner ,professor at Harvard

               :: 首頁 :: 新隨筆 ::  ::  :: 管理 ::
            There are y ball with a bad one between them.
            all the ball are the same look.
            now, give you a balance, how many times do you need to pick out the bad one?

            My resolution: need Ball(y) times to pick out the bad one.

            #include <stdio.h>
            #include 
            <math.h>

            int Ball(int y)
            {
                
            if(y <= 3return 1;
                
            return 1+Ball( y/3 * 3 == y ? y/3 : y/3 +1 );
            }
            int main()
            {
                
            int i = 0;
                
            for(i = 2; i < 200; i++) {
                    printf(
            "Ball(%3d)=%d \t", i, Ball(i));
                    
            if(i%5 == 0) puts("");
                }
                puts(
            "");
                
            return 0;
            }



            posted on 2010-10-29 09:21 JonsenElizee 閱讀(1451) 評論(0)  編輯 收藏 引用 所屬分類: Data Structures & Algorithms
            By JonsenElizee
            青青热久久国产久精品 | 国产亚州精品女人久久久久久| 精品久久久久久综合日本| 久久播电影网| 人妻丰满AV无码久久不卡| 久久精品国产免费一区| 久久久久国产一区二区| 无码人妻久久一区二区三区免费丨 | 久久亚洲精品中文字幕| 久久久久国产成人精品亚洲午夜| 久久久久av无码免费网| 99久久精品九九亚洲精品| 久久综合香蕉国产蜜臀AV| 欧美日韩中文字幕久久久不卡 | 精品无码久久久久久午夜| 色99久久久久高潮综合影院| 国产精品久久久久国产A级| 久久久久久久久66精品片| 99久久国产综合精品网成人影院 | 久久婷婷是五月综合色狠狠| 国产精品久久久久久福利69堂| 国产69精品久久久久观看软件| 伊人久久免费视频| 99久久综合狠狠综合久久止| 久久人人爽人人爽人人片AV不 | 久久99精品久久久久久9蜜桃| 国产精品久久久久天天影视| 亚洲va中文字幕无码久久| 伊人久久精品影院| 看全色黄大色大片免费久久久| 国内精品久久久久久野外| 亚洲国产精品无码久久一区二区| 怡红院日本一道日本久久| 少妇久久久久久久久久| 精品久久久无码21p发布| 久久经典免费视频| 18禁黄久久久AAA片| 综合久久精品色| 久久午夜无码鲁丝片秋霞| 久久久久久久久久久精品尤物 | 欧美一级久久久久久久大片|