• <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 閱讀(1452) 評論(0)  編輯 收藏 引用 所屬分類: Data Structures & Algorithms
            By JonsenElizee
            国内精品久久久久| 国产成人久久AV免费| 久久乐国产综合亚洲精品| 亚洲色欲久久久综合网| 久久午夜电影网| 性做久久久久久久久久久| 无码人妻久久久一区二区三区 | 久久精品成人免费国产片小草| 久久久久亚洲AV无码专区桃色 | 久久精品99久久香蕉国产色戒| 浪潮AV色综合久久天堂| 久久天天躁狠狠躁夜夜不卡 | 激情五月综合综合久久69| 久久这里只有精品首页| 99热热久久这里只有精品68| 日本强好片久久久久久AAA| 国产午夜精品理论片久久| 午夜精品久久久久久99热| 婷婷久久综合| 久久99国产一区二区三区| 人妻少妇久久中文字幕一区二区| 久久精品99无色码中文字幕| 久久久久久毛片免费播放| 久久精品无码一区二区WWW| 国产毛片久久久久久国产毛片 | 国内精品久久久久影院优| 日本精品久久久久影院日本| 大蕉久久伊人中文字幕| 91精品国产色综合久久| 一本色道久久HEZYO无码| 欧美伊人久久大香线蕉综合| 久久人人爽人人爽人人片AV麻豆 | 国产—久久香蕉国产线看观看| 精品久久777| 嫩草影院久久99| 久久免费高清视频| 久久综合九色综合97_久久久| 精品熟女少妇a∨免费久久| 久久综合给合久久狠狠狠97色 | 青青草原综合久久大伊人| 伊人情人综合成人久久网小说 |