• <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热国产| 99久久精品免费看国产| 日日狠狠久久偷偷色综合免费| 综合久久给合久久狠狠狠97色| 久久亚洲AV无码精品色午夜麻豆| 亚洲国产精品高清久久久| 99久久中文字幕| 久久久黄片| 久久无码人妻一区二区三区 | 欧美成a人片免费看久久| 一级做a爰片久久毛片毛片| 久久天天躁狠狠躁夜夜网站| 久久99国产精品久久99果冻传媒| 青青热久久国产久精品| 国内精品伊人久久久久av一坑| 久久久国产精华液| 久久精品一区二区国产| 精品久久久无码21p发布| 国产精品成人99久久久久91gav| 欧美亚洲国产精品久久| 99久久精品无码一区二区毛片| 久久天天躁狠狠躁夜夜2020一| 韩国三级中文字幕hd久久精品| 色综合久久综合中文综合网| 久久综合给合综合久久| 国产精品伦理久久久久久| 成人久久精品一区二区三区| 色婷婷综合久久久久中文一区二区 | 青青草国产精品久久久久| 99久久无色码中文字幕人妻| 丁香五月综合久久激情| 久久99精品国产99久久| 看久久久久久a级毛片| 99久久国产宗和精品1上映| 欧美一区二区久久精品| 亚洲&#228;v永久无码精品天堂久久| 91久久成人免费| 精品视频久久久久| 久久久久亚洲AV无码专区网站|