• <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一区| 亚洲国产精品婷婷久久| 亚洲精品无码久久久久AV麻豆| 久久国产乱子精品免费女| 亚洲国产成人久久综合一| 免费精品99久久国产综合精品| 99久久国产亚洲高清观看2024 | 久久午夜无码鲁丝片秋霞 | 色综合久久久久| 亚洲中文字幕无码久久2020 | 99久久99这里只有免费费精品| 国产三级精品久久| 久久久久久免费视频| 国内精品久久久人妻中文字幕| 久久综合中文字幕| 一个色综合久久| 高清免费久久午夜精品| 久久伊人色| 狠狠色丁香婷综合久久| 国产精品乱码久久久久久软件| avtt天堂网久久精品| 久久综合九色综合久99| 成人免费网站久久久| 少妇无套内谢久久久久| 亚洲嫩草影院久久精品| 久久丫精品国产亚洲av不卡| 日本精品一区二区久久久| 国产成人久久精品区一区二区| 久久精品国产福利国产琪琪| 久久男人Av资源网站无码软件| 久久免费国产精品| 国内精品久久久久久麻豆| 久久亚洲AV成人无码国产| 亚洲精品WWW久久久久久| 品成人欧美大片久久国产欧美...| 无码精品久久久天天影视| 中文字幕久久精品 | 性做久久久久久免费观看| 一本大道久久东京热无码AV| 久久精品?ⅴ无码中文字幕| 99久久超碰中文字幕伊人|