• <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
            精品国产91久久久久久久a| 香蕉久久av一区二区三区| 国产亚洲成人久久| 老男人久久青草av高清| 久久精品国产亚洲av水果派| 久久亚洲高清观看| 波多野结衣久久一区二区| 亚洲国产精品久久久久久| 久久99热这里只频精品6| 天天爽天天爽天天片a久久网| 性做久久久久久久久老女人| 久久国产精品久久精品国产| 亚洲AV无码1区2区久久| 久久高潮一级毛片免费| 久久99精品国产自在现线小黄鸭| 亚洲欧洲久久久精品| 成人精品一区二区久久久| 国产精品美女久久久久| 99久久国产亚洲综合精品| 久久狠狠一本精品综合网| 国产精品久久网| av国内精品久久久久影院| 久久久久久久久久久精品尤物| 国内精品久久久久久久久| 国产精品久久成人影院| 97久久综合精品久久久综合| 国内精品伊人久久久影院| 亚洲欧洲精品成人久久曰影片| 久久精品国产亚洲Aⅴ蜜臀色欲 | av无码久久久久不卡免费网站| 精品无码久久久久国产动漫3d| 亚洲国产精品成人AV无码久久综合影院 | 久久夜色精品国产亚洲| 久久精品国产亚洲AV电影| 久久久精品国产免大香伊 | 久久精品中文字幕久久| 久久婷婷综合中文字幕| 国内精品久久久久久久久电影网 | 久久精品国产久精国产果冻传媒| 一级做a爰片久久毛片免费陪| 午夜精品久久久久久影视riav|