• <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 閱讀(1462) 評論(0)  編輯 收藏 引用 所屬分類: Data Structures & Algorithms
            By JonsenElizee
            久久精品国产亚洲AV无码麻豆| 97久久久精品综合88久久| 久久丝袜精品中文字幕| 久久毛片一区二区| 久久精品国产亚洲精品2020| 51久久夜色精品国产| 久久精品国产男包| 久久精品国产WWW456C0M| 人妻无码中文久久久久专区 | 久久亚洲中文字幕精品一区四| 色偷偷88欧美精品久久久| 久久人人爽爽爽人久久久| 青青久久精品国产免费看| 成人久久综合网| 午夜精品久久久久久久久| 欧美日韩精品久久久免费观看| 亚洲狠狠综合久久| 国产∨亚洲V天堂无码久久久| 中文字幕无码av激情不卡久久| 青青青伊人色综合久久| 97精品伊人久久大香线蕉app| 免费精品久久天干天干| 香蕉久久永久视频| 久久天天躁狠狠躁夜夜不卡| 国产成人精品久久亚洲高清不卡 | 精品久久久久香蕉网| 婷婷五月深深久久精品| 性高湖久久久久久久久| 久久国产欧美日韩精品| 综合网日日天干夜夜久久| 伊人色综合九久久天天蜜桃| 91久久精品无码一区二区毛片| 久久精品中文字幕久久| 国产成人久久精品麻豆一区| 久久久久中文字幕| 国产精品成人99久久久久| 亚洲国产精品久久久久| 久久亚洲高清综合| 久久久噜噜噜久久中文字幕色伊伊| 精品久久久无码人妻中文字幕| 亚洲国产精品高清久久久|