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

            學習心得(code)

            superlong@CoreCoder

              C++博客 :: 首頁 :: 聯系 :: 聚合  :: 管理
              74 Posts :: 0 Stories :: 5 Comments :: 0 Trackbacks

            公告

            文字可能放在http://blog.csdn.net/superlong100,此處存放代碼

            常用鏈接

            留言簿(4)

            我參與的團隊

            搜索

            •  

            最新隨筆

            最新評論

            • 1.?re: Poj 1279
            • 對于一個凹多邊形用叉積計算面積 后能根據結果的正負來判斷給的點集的時針方向?
            • --bsshanghai
            • 2.?re: Poj 3691
            • 你寫的這個get_fail() 好像并是真正的get_fail,也是說fail指向的串并不是當前結點的子串。為什么要這樣弄呢?
            • --acmer1183
            • 3.?re: HDU2295[未登錄]
            • 這個是IDA* 也就是迭代加深@ylfdrib
            • --superlong
            • 4.?re: HDU2295
            • 評論內容較長,點擊標題查看
            • --ylfdrib
            • 5.?re: HOJ 11482
            • 呵呵..把代碼發在這里很不錯..以后我也試試...百度的編輯器太爛了....
            • --csuft1

            閱讀排行榜

            評論排行榜

            #include <stdio.h>
            #include 
            <string.h>

            int n, index, time[100001], ord[100001];
            __int64 s[
            100001], temp, max;

            int main()
            {
                memset(time , 
            0 , sizeof(time));
                
            while(scanf("%d"&n), n)
                {
                    
            int i, j;
                    index 
            = 0;
                    max 
            = 0;
                    ord[
            0= 0;
                    
            for(i = 1; i <= n; i ++)
                    {
                        scanf(
            "%I64d"&temp);
                        
            while( index > 0 && s[index] > temp )
                        {
                            
            if( (i - time[index]) * s[index] > max )
                                max 
            = (i - time[index]) * s[index];
                            index 
            --;
                        }
                        s[
            ++index] = temp;
                        ord[index] 
            = i;
                        time[index] 
            = ord[index - 1+ 1;
                    }
                    n 
            ++;
                    
            for(i = 1; i <= index; i ++)
                        max 
            = max < (n - time[i]) * s[i] ? (n - time[i]) * s[i] : max;
                    printf(
            "%I64d\n",max);
                }
            }

            posted on 2009-08-06 20:32 superlong 閱讀(250) 評論(0)  編輯 收藏 引用
            久久成人精品| 久久久精品久久久久特色影视| 亚洲精品99久久久久中文字幕| 日韩美女18网站久久精品| 精品久久久无码21p发布| 久久久久高潮毛片免费全部播放| 久久永久免费人妻精品下载| 99久久国产综合精品五月天喷水| 久久久久国产一区二区三区| 一本色道久久综合狠狠躁| 久久综合九色综合精品| 国产69精品久久久久观看软件| 亚洲精品无码久久久久久| 国产香蕉97碰碰久久人人| 久久综合香蕉国产蜜臀AV| 热综合一本伊人久久精品| 久久精品一本到99热免费| 久久久噜噜噜久久中文字幕色伊伊| 亚洲精品无码久久久久sm| 日产久久强奸免费的看| 久久99精品国产| 久久婷婷成人综合色综合| 四虎国产精品免费久久| 91性高湖久久久久| 国产日产久久高清欧美一区| 久久久久亚洲AV片无码下载蜜桃| 国产精品亚洲综合专区片高清久久久| 久久人人爽人人爽人人片AV东京热| 国产99久久九九精品无码| 久久国产精品77777| 久久精品国产清自在天天线 | 9久久9久久精品| 久久综合亚洲鲁鲁五月天| 日本亚洲色大成网站WWW久久 | 久久这里只有精品首页| 97精品国产91久久久久久| 激情伊人五月天久久综合| 色88久久久久高潮综合影院| 亚洲av日韩精品久久久久久a | 亚洲va国产va天堂va久久| 99精品国产综合久久久久五月天 |