锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久午夜福利无码1000合集,精品久久久久久亚洲,亚洲伊人久久成综合人影院 http://www.shnenglu.com/yzhw/category/15213.htmlzh-cnSun, 11 Sep 2011 03:29:14 GMTSun, 11 Sep 2011 03:29:14 GMT60The 36th ACM/ICPC Asia Regional Shanghai Site 鈥斺?Warmup 涓漢棰樿Вhttp://www.shnenglu.com/yzhw/archive/2011/09/07/155307.htmlyzhwyzhwWed, 07 Sep 2011 14:30:00 GMThttp://www.shnenglu.com/yzhw/archive/2011/09/07/155307.htmlhttp://www.shnenglu.com/yzhw/comments/155307.htmlhttp://www.shnenglu.com/yzhw/archive/2011/09/07/155307.html#Feedback2http://www.shnenglu.com/yzhw/comments/commentRss/155307.htmlhttp://www.shnenglu.com/yzhw/services/trackbacks/155307.html闃呰鍏ㄦ枃

yzhw 2011-09-07 22:30 鍙戣〃璇勮
]]>
pku2894-2903 Tehran 2005 姣旇禌鎬葷粨http://www.shnenglu.com/yzhw/archive/2011/01/31/139630.htmlyzhwyzhwSun, 30 Jan 2011 17:59:00 GMThttp://www.shnenglu.com/yzhw/archive/2011/01/31/139630.htmlhttp://www.shnenglu.com/yzhw/comments/139630.htmlhttp://www.shnenglu.com/yzhw/archive/2011/01/31/139630.html#Feedback1http://www.shnenglu.com/yzhw/comments/commentRss/139630.htmlhttp://www.shnenglu.com/yzhw/services/trackbacks/139630.html闃呰鍏ㄦ枃

yzhw 2011-01-31 01:59 鍙戣〃璇勮
]]>
pku1334 Two Mountaineers 璐績+鍒嗙被璁ㄨhttp://www.shnenglu.com/yzhw/archive/2011/01/26/139309.htmlyzhwyzhwTue, 25 Jan 2011 16:58:00 GMThttp://www.shnenglu.com/yzhw/archive/2011/01/26/139309.htmlhttp://www.shnenglu.com/yzhw/comments/139309.htmlhttp://www.shnenglu.com/yzhw/archive/2011/01/26/139309.html#Feedback0http://www.shnenglu.com/yzhw/comments/commentRss/139309.htmlhttp://www.shnenglu.com/yzhw/services/trackbacks/139309.html
涓や釜浜虹埇灞憋紝鏃跺埢瑕佷繚璇佸湪鍚屼竴姘村鉤闈笂錛岀洿鍒頒袱浜轟簰鎹綅緗傞棶璧拌繃鐨勬渶鐭窛紱匯備袱鐐歸棿璺濈瀹氫箟涓轟袱鐐歸棿鐨剏杞寸粷瀵瑰煎樊銆?br>緇欏姏鏉′歡錛氶櫎浜嗛灝句袱鐐規(guī)瘡涓偣鐨剏鍧愭爣鍧囦笉鐩稿悓

瑙f硶錛?br>DP錛熸潃楦$敤鐗涘垁錛屾病蹇呰錛?br>璐績錛?br>棣栧厛鏄庣‘錛屼笉鑳借蛋鍥炲ご璺紝榪欓噷鐨勫洖澶磋礬鎸囧畬鍏ㄩ鍥炲埌涓婁釜姝ラ鎵鍦ㄧ殑鐐癸紝鏄劇劧錛岃繖鏍風(fēng)殑璧版硶鏄棤鎰忎箟鐨勩?br>璁劇疆涓や釜鎸囬拡錛宲1鎸囧悜澶達(dá)紝p2鎸囧悜灝撅紝寰幆鑷充袱涓寚閽堥噸鍙犮備笅闈㈠叿浣撳垎鍥涚鎯呭喌璁ㄨ錛?br>1銆佸鏋測(cè)p1+1>yp1涓攜p2-1>yp2錛岃繖縐嶆儏鍐典笅褰撶劧灞卞嘲楂樼殑甯姪灞卞嘲浣庣殑瓚婅繃浣庣殑灞卞嘲

2銆佸鏋測(cè)p1+1>yp1涓攜p2-1<yp2錛岃繖縐嶆儏鍐靛張瑕佸垎涓ょ鎯呭喌錛?br>      2.1 濡傛灉(p1,p1+1)榪欐涓婂潯閫氳繃灞閮ㄥ洖閫鑳藉璁﹑2搴﹁繃榪欎釜灞辮胺錛屾樉鐒惰繖鏍峰氨鏄痯2--
      2.2 鍚﹀垯p1蹇呴』鍥為鑷充笂涓嫄鐐癸紝璇曞浘鑾峰緱鏇翠綆鐨勯珮搴︼紝榪欐牱灝辨槸p1--
3銆佸鏋測(cè)p1+1<yp1涓攜p2-1>yp2錛屼笌涓婄鎯呭喌綾諱技錛屼笉鍔犺禈榪般?br>4銆佸鏋測(cè)p1+1<yp1涓攜p2-1<yp2錛岃繖縐嶆儏鍐典笉搴旇鏄甯告儏鍐典笅搴旇鍑虹幇鐨勶紝鍥犺鏄鍒版煇涓緢娣辯殑灞辮胺鍚庝笂鍧℃鍥為褰㈡垚鐨勶紝榪欐椂鍊欏簲璇ョ戶緇悗閫錛屼互瀵繪眰鏇翠綆鐐廣?br>
浠g爜閲屽啓鐨勫緢娓呮錛屽ぇ瀹剁湅浠g爜鍚э細(xì)
 1# include <cstdio>
 2using namespace std;
 3# define min(a,b) ((a)<(b)?(a):(b))
 4# define max(a,b) ((a)>(b)?(a):(b))
 5int p[1001][2],n,p1,p2,ans,last;
 6int main()
 7{
 8    int test;
 9    scanf("%d",&test);
10    while(test--)
11    {
12        scanf("%d",&n);
13        for(int i=0;i<n;i++)
14          scanf("%d %d",&p[i][0],&p[i][1]);
15        p1=0,p2=n-1,ans=0;
16        last=p[0][1];
17        while(p2>p1)
18        {
19           if(p[p2-1][1]>p[p2][1]&&p[p1+1][1]>p[p1][1])
20           {
21                ans+=2*(min(p[p2-1][1],p[p1+1][1])-last);
22                last=min(p[p2-1][1],p[p1+1][1]);
23                if(p[p2-1][1]==last) p2--;
24                if(p[p1+1][1]==last) p1++;
25           }

26           else if(p[p2-1][1]<p[p2][1]&&p[p1+1][1]>p[p1][1])
27           {
28              ans+=2*(last-max(p[p2-1][1],p[p1][1]));
29              last=max(p[p2-1][1],p[p1][1]);
30              if(last==p[p2-1][1]) p2--;
31              else p1--;
32           }

33           else if(p[p2-1][1]>p[p2][1]&&p[p1+1][1]<p[p1][1])
34           {
35            ans+=2*(last-max(p[p2][1],p[p1+1][1]));
36            last=max(p[p2][1],p[p1+1][1]);
37            if(last==p[p1+1][1]) p1++;
38            else p2++;
39           }

40           else
41           {
42              ans+=2*(min(p[p1][1],p[p2][1])-last);
43              last=min(p[p1][1],p[p2][1]);
44              if(last==p[p1][1]) p1--;
45              else p2++;
46           }

47        }

48        printf("%d\n",ans*2);
49    }

50    return 0;
51}

52


yzhw 2011-01-26 00:58 鍙戣〃璇勮
]]>
pku 3393 Lucky and Good Months by Gregorian Calendar 鑻辮闃呰棰?/title><link>http://www.shnenglu.com/yzhw/archive/2011/01/06/138043.html</link><dc:creator>yzhw</dc:creator><author>yzhw</author><pubDate>Wed, 05 Jan 2011 16:14:00 GMT</pubDate><guid>http://www.shnenglu.com/yzhw/archive/2011/01/06/138043.html</guid><wfw:comment>http://www.shnenglu.com/yzhw/comments/138043.html</wfw:comment><comments>http://www.shnenglu.com/yzhw/archive/2011/01/06/138043.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/yzhw/comments/commentRss/138043.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/yzhw/services/trackbacks/138043.html</trackback:ping><description><![CDATA[鍝庛傘傛庝箞璇村憿錛岃繖縐嶉鐩竴鐐圭粏鑺傛敞鎰忎笉鍒板氨鏄嚑涓皬鏃剁殑嫻垂<br>鎬葷粨涓嬮鐩惂<br>璇寸櫧浜嗗氨鏄綆楀叕鍘嗙郴緇熶腑鏌愬勾鏌愭湀鐨勭涓澶╂槸涓嶆槸鍛ㄤ竴銆佸懆鍏佸懆鏃ヤ互鍙?qiáng)鏌愹q存煇鏈堢殑鏈鍚庝竴澶╂槸涓嶆槸鍛ㄤ簲銆佸懆鍏佸懆鏃?br>鍏充簬鍏巻澶у鐭ラ亾鐨勫氨涓嶈浜嗭紝璇村嚑鐐瑰ぇ瀹跺彲鑳戒笉鐭ラ亾鐨?br>1銆佸叧浜庨棸騫?br>An year <em>y</em>, <em>y</em> > 1582 and <em>y</em> ≠ 1700, is a leap year if and only if錛堟敞鎰忥紒1700綆楅棸騫達(dá)級(jí) <ul> <li> <p><em>y</em> is divisible by 4, and</p> </li> <li> <p><em>y</em> is not divisible by 100 unless it is divisible by 400.</p> </li> </ul> <p>An year <em>y</em>, 0 < <em>y</em> < 1582 is a leap year if and only if</p> <ul> <li><em>y</em> is divisible by 4.</li> </ul> 2銆佸叧浜庡叕鍘嗕腑鏈?1澶╃殑緙哄け<br> 11 days are eliminated starting September 3, 1752 in order for people not to rewrite history<br><br>涓嬮潰灝辨槸甯歌鐨勫仛娉曚簡銆傘?br>緇熻鎴鍒版瘡涓騫存湁澶氬皯澶╋紝鐒跺悗灝嗘墍鏈夌殑lucky month鍜実ood month閮芥壘鍑烘潵錛岄『搴忓瓨鏀懼湪鏁扮粍涓紝鏌ヨ鐨勬椂鍊欎簩鍒嗗噺涓涓嬪氨鍙互浜唦<br>浠g爜錛?br> <div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #008080;"> 1</span> <span style="color: #000000;"># include </span><span style="color: #000000;"><</span><span style="color: #000000;">iostream</span><span style="color: #000000;">></span><span style="color: #000000;"><br></span><span style="color: #008080;"> 2</span> <span style="color: #000000;"></span><span style="color: #0000ff;">using</span><span style="color: #000000;"> </span><span style="color: #0000ff;">namespace</span><span style="color: #000000;"> std;<br></span><span style="color: #008080;"> 3</span> <span style="color: #000000;"></span><span style="color: #0000ff;">int</span><span style="color: #000000;"> o[]</span><span style="color: #000000;">=</span><span style="color: #000000;">{</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">28</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">30</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">30</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">30</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">30</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">},l[]</span><span style="color: #000000;">=</span><span style="color: #000000;">{</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">29</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">30</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">30</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">30</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">,</span><span style="color: #000000;">30</span><span style="color: #000000;">,</span><span style="color: #000000;">31</span><span style="color: #000000;">};<br></span><span style="color: #008080;"> 4</span> <span style="color: #000000;"></span><span style="color: #0000ff;">int</span><span style="color: #000000;"> y[</span><span style="color: #000000;">10001</span><span style="color: #000000;">];<br></span><span style="color: #008080;"> 5</span> <span style="color: #000000;"># include </span><span style="color: #000000;"><</span><span style="color: #000000;">vector</span><span style="color: #000000;">></span><span style="color: #000000;"><br></span><span style="color: #008080;"> 6</span> <span style="color: #000000;"># include </span><span style="color: #000000;"><</span><span style="color: #000000;">algorithm</span><span style="color: #000000;">></span><span style="color: #000000;"><br></span><span style="color: #008080;"> 7</span> <span style="color: #000000;"># define MON </span><span style="color: #000000;">730124</span><span style="color: #000000;"><br></span><span style="color: #008080;"> 8</span> <span style="color: #000000;"># define FRI </span><span style="color: #000000;">730121</span><span style="color: #000000;"><br></span><span style="color: #008080;"> 9</span> <span style="color: #000000;"># define SAT </span><span style="color: #000000;">730122</span><span style="color: #000000;"><br></span><span style="color: #008080;">10</span> <span style="color: #000000;"># define SUN </span><span style="color: #000000;">730123</span><span style="color: #000000;"><br></span><span style="color: #008080;">11</span> <span style="color: #000000;">vector</span><span style="color: #000000;"><</span><span style="color: #0000ff;">int</span><span style="color: #000000;">></span><span style="color: #000000;"> lucky,good;<br></span><span style="color: #008080;">12</span> <span style="color: #000000;"></span><span style="color: #0000ff;">int</span><span style="color: #000000;"> main()<br></span><span style="color: #008080;">13</span> <span style="color: #000000;">{<br></span><span style="color: #008080;">14</span> <span style="color: #000000;">    </span><span style="color: #008000;">//</span><span style="color: #008000;">init</span><span style="color: #008000;"><br></span><span style="color: #008080;">15</span> <span style="color: #008000;"></span><span style="color: #000000;">    </span><span style="color: #0000ff;">for</span><span style="color: #000000;">(</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> i</span><span style="color: #000000;">=</span><span style="color: #000000;">1</span><span style="color: #000000;">;i</span><span style="color: #000000;"><</span><span style="color: #000000;">12</span><span style="color: #000000;">;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br></span><span style="color: #008080;">16</span> <span style="color: #000000;">      o[i]</span><span style="color: #000000;">+=</span><span style="color: #000000;">o[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">],l[i]</span><span style="color: #000000;">+=</span><span style="color: #000000;">l[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">];<br></span><span style="color: #008080;">17</span> <span style="color: #000000;">    y[</span><span style="color: #000000;">0</span><span style="color: #000000;">]</span><span style="color: #000000;">=</span><span style="color: #000000;">0</span><span style="color: #000000;">;<br></span><span style="color: #008080;">18</span> <span style="color: #000000;">    </span><span style="color: #0000ff;">for</span><span style="color: #000000;">(</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> i</span><span style="color: #000000;">=</span><span style="color: #000000;">1</span><span style="color: #000000;">;i</span><span style="color: #000000;"><</span><span style="color: #000000;">10000</span><span style="color: #000000;">;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br></span><span style="color: #008080;">19</span> <span style="color: #000000;">    {<br></span><span style="color: #008080;">20</span> <span style="color: #000000;">      </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(i</span><span style="color: #000000;"><</span><span style="color: #000000;">1582</span><span style="color: #000000;">&&</span><span style="color: #000000;">i</span><span style="color: #000000;">%</span><span style="color: #000000;">4</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">i</span><span style="color: #000000;">></span><span style="color: #000000;">1582</span><span style="color: #000000;">&&</span><span style="color: #000000;">(i</span><span style="color: #000000;">%</span><span style="color: #000000;">4</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">&&</span><span style="color: #000000;">i</span><span style="color: #000000;">%</span><span style="color: #000000;">100</span><span style="color: #000000;">!=</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">i</span><span style="color: #000000;">%</span><span style="color: #000000;">400</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><span style="color: #000000;">||</span><span style="color: #000000;">i</span><span style="color: #000000;">==</span><span style="color: #000000;">1700</span><span style="color: #000000;">)<br></span><span style="color: #008080;">21</span> <span style="color: #000000;">          y[i]</span><span style="color: #000000;">=</span><span style="color: #000000;">y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">l[</span><span style="color: #000000;">11</span><span style="color: #000000;">];<br></span><span style="color: #008080;">22</span> <span style="color: #000000;">      </span><span style="color: #0000ff;">else</span><span style="color: #000000;"><br></span><span style="color: #008080;">23</span> <span style="color: #000000;">          y[i]</span><span style="color: #000000;">=</span><span style="color: #000000;">y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">o[</span><span style="color: #000000;">11</span><span style="color: #000000;">];<br></span><span style="color: #008080;">24</span> <span style="color: #000000;">      </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(i</span><span style="color: #000000;">==</span><span style="color: #000000;">1752</span><span style="color: #000000;">) y[i]</span><span style="color: #000000;">-=</span><span style="color: #000000;">11</span><span style="color: #000000;">;<br></span><span style="color: #008080;">25</span> <span style="color: #000000;">    }<br></span><span style="color: #008080;">26</span> <span style="color: #000000;">   </span><span style="color: #0000ff;">for</span><span style="color: #000000;">(</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> i</span><span style="color: #000000;">=</span><span style="color: #000000;">1</span><span style="color: #000000;">;i</span><span style="color: #000000;"><</span><span style="color: #000000;">10000</span><span style="color: #000000;">;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br></span><span style="color: #008080;">27</span> <span style="color: #000000;">   {<br></span><span style="color: #008080;">28</span> <span style="color: #000000;">         <br></span><span style="color: #008080;">29</span> <span style="color: #000000;">        </span><span style="color: #0000ff;">int</span><span style="color: #000000;"> </span><span style="color: #000000;">*</span><span style="color: #000000;">m;<br></span><span style="color: #008080;">30</span> <span style="color: #000000;">        </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(i</span><span style="color: #000000;"><</span><span style="color: #000000;">1582</span><span style="color: #000000;">&&</span><span style="color: #000000;">i</span><span style="color: #000000;">%</span><span style="color: #000000;">4</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">i</span><span style="color: #000000;">></span><span style="color: #000000;">1582</span><span style="color: #000000;">&&</span><span style="color: #000000;">(i</span><span style="color: #000000;">%</span><span style="color: #000000;">4</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">&&</span><span style="color: #000000;">i</span><span style="color: #000000;">%</span><span style="color: #000000;">100</span><span style="color: #000000;">!=</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">i</span><span style="color: #000000;">%</span><span style="color: #000000;">400</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">)) m</span><span style="color: #000000;">=</span><span style="color: #000000;">l;<br></span><span style="color: #008080;">31</span> <span style="color: #000000;">        </span><span style="color: #0000ff;">else</span><span style="color: #000000;"> m</span><span style="color: #000000;">=</span><span style="color: #000000;">o;<br></span><span style="color: #008080;">32</span> <span style="color: #000000;">        </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(i</span><span style="color: #000000;">==</span><span style="color: #000000;">1752</span><span style="color: #000000;">)<br></span><span style="color: #008080;">33</span> <span style="color: #000000;">        {<br></span><span style="color: #008080;">34</span> <span style="color: #000000;">          </span><span style="color: #0000ff;">for</span><span style="color: #000000;">(</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> j</span><span style="color: #000000;">=</span><span style="color: #000000;">8</span><span style="color: #000000;">;j</span><span style="color: #000000;"><</span><span style="color: #000000;">12</span><span style="color: #000000;">;j</span><span style="color: #000000;">++</span><span style="color: #000000;">) m[j]</span><span style="color: #000000;">-=</span><span style="color: #000000;">11</span><span style="color: #000000;">;<br></span><span style="color: #008080;">35</span> <span style="color: #000000;">        } <br></span><span style="color: #008080;">36</span> <span style="color: #000000;">        </span><span style="color: #0000ff;">if</span><span style="color: #000000;">((y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">1</span><span style="color: #000000;">-</span><span style="color: #000000;">MON)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">(y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">1</span><span style="color: #000000;">-</span><span style="color: #000000;">SAT)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">(y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">1</span><span style="color: #000000;">-</span><span style="color: #000000;">SUN)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">) good.push_back(i</span><span style="color: #000000;">*</span><span style="color: #000000;">12</span><span style="color: #000000;">+</span><span style="color: #000000;">1</span><span style="color: #000000;">);<br></span><span style="color: #008080;">37</span> <span style="color: #000000;">        </span><span style="color: #0000ff;">if</span><span style="color: #000000;">((y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">o[</span><span style="color: #000000;">0</span><span style="color: #000000;">]</span><span style="color: #000000;">-</span><span style="color: #000000;">FRI)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">(y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">o[</span><span style="color: #000000;">0</span><span style="color: #000000;">]</span><span style="color: #000000;">-</span><span style="color: #000000;">SAT)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">(y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">o[</span><span style="color: #000000;">0</span><span style="color: #000000;">]</span><span style="color: #000000;">-</span><span style="color: #000000;">SUN)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">) lucky.push_back(i</span><span style="color: #000000;">*</span><span style="color: #000000;">12</span><span style="color: #000000;">+</span><span style="color: #000000;">1</span><span style="color: #000000;">);<br></span><span style="color: #008080;">38</span> <span style="color: #000000;">        </span><span style="color: #0000ff;">for</span><span style="color: #000000;">(</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> j</span><span style="color: #000000;">=</span><span style="color: #000000;">1</span><span style="color: #000000;">;j</span><span style="color: #000000;"><</span><span style="color: #000000;">12</span><span style="color: #000000;">;j</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br></span><span style="color: #008080;">39</span> <span style="color: #000000;">        {<br></span><span style="color: #008080;">40</span> <span style="color: #000000;">           </span><span style="color: #0000ff;">if</span><span style="color: #000000;">((y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">1</span><span style="color: #000000;">+</span><span style="color: #000000;">m[j</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">-</span><span style="color: #000000;">MON)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">(y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">1</span><span style="color: #000000;">+</span><span style="color: #000000;">m[j</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">-</span><span style="color: #000000;">SAT)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">(y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">1</span><span style="color: #000000;">+</span><span style="color: #000000;">m[j</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">-</span><span style="color: #000000;">SUN)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">) good.push_back(i</span><span style="color: #000000;">*</span><span style="color: #000000;">12</span><span style="color: #000000;">+</span><span style="color: #000000;">j</span><span style="color: #000000;">+</span><span style="color: #000000;">1</span><span style="color: #000000;">);<br></span><span style="color: #008080;">41</span> <span style="color: #000000;">           </span><span style="color: #0000ff;">if</span><span style="color: #000000;">((y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">m[j]</span><span style="color: #000000;">-</span><span style="color: #000000;">FRI)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">(y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">m[j]</span><span style="color: #000000;">-</span><span style="color: #000000;">SAT)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">||</span><span style="color: #000000;">(y[i</span><span style="color: #000000;">-</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+</span><span style="color: #000000;">m[j]</span><span style="color: #000000;">-</span><span style="color: #000000;">SUN)</span><span style="color: #000000;">%</span><span style="color: #000000;">7</span><span style="color: #000000;">==</span><span style="color: #000000;">0</span><span style="color: #000000;">) lucky.push_back(i</span><span style="color: #000000;">*</span><span style="color: #000000;">12</span><span style="color: #000000;">+</span><span style="color: #000000;">j</span><span style="color: #000000;">+</span><span style="color: #000000;">1</span><span style="color: #000000;">);<br></span><span style="color: #008080;">42</span> <span style="color: #000000;">        }     <br></span><span style="color: #008080;">43</span> <span style="color: #000000;">        </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(i</span><span style="color: #000000;">==</span><span style="color: #000000;">1752</span><span style="color: #000000;">)<br></span><span style="color: #008080;">44</span> <span style="color: #000000;">        {<br></span><span style="color: #008080;">45</span> <span style="color: #000000;">          </span><span style="color: #0000ff;">for</span><span style="color: #000000;">(</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> j</span><span style="color: #000000;">=</span><span style="color: #000000;">8</span><span style="color: #000000;">;j</span><span style="color: #000000;"><</span><span style="color: #000000;">12</span><span style="color: #000000;">;j</span><span style="color: #000000;">++</span><span style="color: #000000;">) m[j]</span><span style="color: #000000;">+=</span><span style="color: #000000;">11</span><span style="color: #000000;">;<br></span><span style="color: #008080;">46</span> <span style="color: #000000;">        } <br></span><span style="color: #008080;">47</span> <span style="color: #000000;">   }<br></span><span style="color: #008080;">48</span> <span style="color: #000000;">   </span><span style="color: #0000ff;">int</span><span style="color: #000000;"> n;<br></span><span style="color: #008080;">49</span> <span style="color: #000000;">   cin</span><span style="color: #000000;">>></span><span style="color: #000000;">n;<br></span><span style="color: #008080;">50</span> <span style="color: #000000;">   </span><span style="color: #0000ff;">while</span><span style="color: #000000;">(n</span><span style="color: #000000;">--</span><span style="color: #000000;">)<br></span><span style="color: #008080;">51</span> <span style="color: #000000;">   {<br></span><span style="color: #008080;">52</span> <span style="color: #000000;">      </span><span style="color: #0000ff;">int</span><span style="color: #000000;"> y1,m1,y2,m2;<br></span><span style="color: #008080;">53</span> <span style="color: #000000;">      cin</span><span style="color: #000000;">>></span><span style="color: #000000;">y1</span><span style="color: #000000;">>></span><span style="color: #000000;">m1</span><span style="color: #000000;">>></span><span style="color: #000000;">y2</span><span style="color: #000000;">>></span><span style="color: #000000;">m2;<br></span><span style="color: #008080;">54</span> <span style="color: #000000;">      cout</span><span style="color: #000000;"><<</span><span style="color: #000000;">upper_bound(lucky.begin(),lucky.end(),y2</span><span style="color: #000000;">*</span><span style="color: #000000;">12</span><span style="color: #000000;">+</span><span style="color: #000000;">m2)</span><span style="color: #000000;">-</span><span style="color: #000000;">lower_bound(lucky.begin(),lucky.end(),y1</span><span style="color: #000000;">*</span><span style="color: #000000;">12</span><span style="color: #000000;">+</span><span style="color: #000000;">m1)</span><span style="color: #000000;"><<</span><span style="color: #000000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;">"</span><span style="color: #000000;"><<</span><span style="color: #000000;">upper_bound(good.begin(),good.end(),y2</span><span style="color: #000000;">*</span><span style="color: #000000;">12</span><span style="color: #000000;">+</span><span style="color: #000000;">m2)</span><span style="color: #000000;">-</span><span style="color: #000000;">lower_bound(good.begin(),good.end(),y1</span><span style="color: #000000;">*</span><span style="color: #000000;">12</span><span style="color: #000000;">+</span><span style="color: #000000;">m1)</span><span style="color: #000000;"><<</span><span style="color: #000000;">endl;<br></span><span style="color: #008080;">55</span> <span style="color: #000000;">   }<br></span><span style="color: #008080;">56</span> <span style="color: #000000;">   </span><span style="color: #008000;">//</span><span style="color: #008000;">system("pause");</span><span style="color: #008000;"><br></span><span style="color: #008080;">57</span> <span style="color: #008000;"></span><span style="color: #000000;">   </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;">;<br></span><span style="color: #008080;">58</span> <span style="color: #000000;">}<br></span><span style="color: #008080;">59</span> <span style="color: #000000;"></span></div> <br><br><img src ="http://www.shnenglu.com/yzhw/aggbug/138043.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/yzhw/" target="_blank">yzhw</a> 2011-01-06 00:14 <a href="http://www.shnenglu.com/yzhw/archive/2011/01/06/138043.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>pku 1771 Elevator Stopping Plan 浜屽垎+璐績鍒ゆ柇鍙鎬?/title><link>http://www.shnenglu.com/yzhw/archive/2010/10/19/130436.html</link><dc:creator>yzhw</dc:creator><author>yzhw</author><pubDate>Tue, 19 Oct 2010 06:24:00 GMT</pubDate><guid>http://www.shnenglu.com/yzhw/archive/2010/10/19/130436.html</guid><wfw:comment>http://www.shnenglu.com/yzhw/comments/130436.html</wfw:comment><comments>http://www.shnenglu.com/yzhw/archive/2010/10/19/130436.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/yzhw/comments/commentRss/130436.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/yzhw/services/trackbacks/130436.html</trackback:ping><description><![CDATA[棰樻剰鏄繖鏍風(fēng)殑錛?br>涓騫㈠ぇ妤兼湁21灞傦紝鍙湁涓涓數(shù)姊紝鐢墊涓婁竴灞傛ゼ闇瑕?縐掋傚仠涓嬈¢渶瑕?0縐掞紝浜虹埇涓灞傛ゼ闇瑕?0縐掞紝鐜版湁涓浜涗漢鎯抽氳繃鐢墊涓婃ゼ錛岀數(shù)姊夋嫨鎬х殑鍋滀竴浜涙ゼ灞傦紝浣垮緱鏈鍚庝竴涓漢鍒拌揪鐩殑妤煎眰鐨勬椂闂存渶灝忋?br>鍍忚繖縐嶆渶澶ф渶灝忛棶棰樹竴鑸濊礬灝辨槸浜屽垎+楠岃瘉鍙鎬с傝繖閬撻楠岃瘉鍙鎬у彲閲囩敤璐績鏂規(guī)硶錛屽嵆鐢墊鍋滈潬鐨勮秺涓婂眰瓚婂ソ錛屾瘡嬈″仠闈犵殑妤煎眰鐢ㄤ笉絳夊紡t-10*num-4*(i-1)-20*(j-i)=0.瑙e嚭銆傚叿浣撶湅浠g爜鍚? -<br>榪欓鍋氱殑鏃跺欐湁鐐筃C錛岀珶鐒跺繕浜嗘帓搴忋傘傛睏銆傘?br> <div style="BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #eeeeee; PADDING-LEFT: 4px; WIDTH: 98%; PADDING-RIGHT: 5px; FONT-SIZE: 13px; WORD-BREAK: break-all; BORDER-TOP: #cccccc 1px solid; BORDER-RIGHT: #cccccc 1px solid; PADDING-TOP: 4px"><span style="COLOR: #008080"> 1</span><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"><span style="COLOR: #000000"># include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">iostream</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 2</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"># include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">vector</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 3</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"># include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">algorithm</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 4</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"># define abs(a) ((a)</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">?</span><span style="COLOR: #000000">(a):</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">(a))<br></span><span style="COLOR: #008080"> 5</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">namespace</span><span style="COLOR: #000000"> std;<br></span><span style="COLOR: #008080"> 6</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> data[</span><span style="COLOR: #000000">50</span><span style="COLOR: #000000">],n;<br></span><span style="COLOR: #008080"> 7</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"></span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> make(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> limit)<br></span><span style="COLOR: #008080"> 8</span><span style="COLOR: #000000"><img id=Codehighlighter1_153_607_Open_Image onclick="this.style.display='none'; Codehighlighter1_153_607_Open_Text.style.display='none'; Codehighlighter1_153_607_Closed_Image.style.display='inline'; Codehighlighter1_153_607_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_153_607_Closed_Image onclick="this.style.display='none'; Codehighlighter1_153_607_Closed_Text.style.display='none'; Codehighlighter1_153_607_Open_Image.style.display='inline'; Codehighlighter1_153_607_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_153_607_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_153_607_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080"> 9</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> used</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,p</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,last</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    vector</span><span style="COLOR: #000000"><</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"> ans;<br></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(p</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n</span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">used</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">(last</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">abs(data[p]</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">last)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">20</span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000">limit)<br></span><span style="COLOR: #008080">12</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">          p</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">; <br></span><span style="COLOR: #008080">13</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(p</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n)<br></span><span style="COLOR: #008080">14</span><span style="COLOR: #000000"><img id=Codehighlighter1_301_508_Open_Image onclick="this.style.display='none'; Codehighlighter1_301_508_Open_Text.style.display='none'; Codehighlighter1_301_508_Closed_Image.style.display='inline'; Codehighlighter1_301_508_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_301_508_Closed_Image onclick="this.style.display='none'; Codehighlighter1_301_508_Closed_Text.style.display='none'; Codehighlighter1_301_508_Open_Image.style.display='inline'; Codehighlighter1_301_508_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_301_508_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_301_508_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">15</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif"><br></span><span style="COLOR: #008080">16</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> up</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">(limit</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">20</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">data[p]</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">used)</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">24</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">17</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       last</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">up;<br></span><span style="COLOR: #008080">18</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       ans.push_back(last);<br></span><span style="COLOR: #008080">19</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       p</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">20</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(p</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n</span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">used</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">(last</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">abs(data[p]</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">last)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">20</span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000">limit)<br></span><span style="COLOR: #008080">21</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">          p</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">; <br></span><span style="COLOR: #008080">22</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       used</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">23</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">    }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">24</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">ans.size();<br></span><span style="COLOR: #008080">25</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">ans.size();i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">26</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">      cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">ans[i];<br></span><span style="COLOR: #008080">27</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">endl;<br></span><span style="COLOR: #008080">28</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif">}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">29</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"></span><span style="COLOR: #0000ff">bool</span><span style="COLOR: #000000"> chk(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> limit)<br></span><span style="COLOR: #008080">30</span><span style="COLOR: #000000"><img id=Codehighlighter1_629_1045_Open_Image onclick="this.style.display='none'; Codehighlighter1_629_1045_Open_Text.style.display='none'; Codehighlighter1_629_1045_Closed_Image.style.display='inline'; Codehighlighter1_629_1045_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_629_1045_Closed_Image onclick="this.style.display='none'; Codehighlighter1_629_1045_Closed_Text.style.display='none'; Codehighlighter1_629_1045_Open_Image.style.display='inline'; Codehighlighter1_629_1045_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_629_1045_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_629_1045_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">31</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> used</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,p</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,last</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">32</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(p</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n</span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">used</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">(last</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">abs(data[p]</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">last)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">20</span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000">limit)<br></span><span style="COLOR: #008080">33</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">          p</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">34</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(p</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n)<br></span><span style="COLOR: #008080">35</span><span style="COLOR: #000000"><img id=Codehighlighter1_755_1026_Open_Image onclick="this.style.display='none'; Codehighlighter1_755_1026_Open_Text.style.display='none'; Codehighlighter1_755_1026_Closed_Image.style.display='inline'; Codehighlighter1_755_1026_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_755_1026_Closed_Image onclick="this.style.display='none'; Codehighlighter1_755_1026_Closed_Text.style.display='none'; Codehighlighter1_755_1026_Open_Image.style.display='inline'; Codehighlighter1_755_1026_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_755_1026_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_755_1026_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">36</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif"><br></span><span style="COLOR: #008080">37</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">used</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">(data[p]</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">limit) </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">false</span><span style="COLOR: #000000">; <br></span><span style="COLOR: #008080">38</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> up</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">(limit</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">20</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">data[p]</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">used)</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">24</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">39</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">if(up>31) up=31;    </span><span style="COLOR: #008000"><br></span><span style="COLOR: #008080">40</span><span style="COLOR: #008000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif"></span><span style="COLOR: #000000">       last</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">up;<br></span><span style="COLOR: #008080">41</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       p</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">42</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(p</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n</span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">used</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">(last</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">abs(data[p]</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">last)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">20</span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000">limit)<br></span><span style="COLOR: #008080">43</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">          p</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">44</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       used</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">45</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        <br></span><span style="COLOR: #008080">46</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">    }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">47</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">48</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif">}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">49</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main()<br></span><span style="COLOR: #008080">50</span><span style="COLOR: #000000"><img id=Codehighlighter1_1058_1570_Open_Image onclick="this.style.display='none'; Codehighlighter1_1058_1570_Open_Text.style.display='none'; Codehighlighter1_1058_1570_Closed_Image.style.display='inline'; Codehighlighter1_1058_1570_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_1058_1570_Closed_Image onclick="this.style.display='none'; Codehighlighter1_1058_1570_Closed_Text.style.display='none'; Codehighlighter1_1058_1570_Open_Image.style.display='inline'; Codehighlighter1_1058_1570_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_1058_1570_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_1058_1570_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">51</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">52</span><span style="COLOR: #000000"><img id=Codehighlighter1_1080_1554_Open_Image onclick="this.style.display='none'; Codehighlighter1_1080_1554_Open_Text.style.display='none'; Codehighlighter1_1080_1554_Closed_Image.style.display='inline'; Codehighlighter1_1080_1554_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_1080_1554_Closed_Image onclick="this.style.display='none'; Codehighlighter1_1080_1554_Closed_Text.style.display='none'; Codehighlighter1_1080_1554_Open_Image.style.display='inline'; Codehighlighter1_1080_1554_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_1080_1554_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_1080_1554_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">53</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> s</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,e</span><span style="COLOR: #000000">=-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">54</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">n;<br></span><span style="COLOR: #008080">55</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">!</span><span style="COLOR: #000000">n) </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">56</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">57</span><span style="COLOR: #000000"><img id=Codehighlighter1_1179_1268_Open_Image onclick="this.style.display='none'; Codehighlighter1_1179_1268_Open_Text.style.display='none'; Codehighlighter1_1179_1268_Closed_Image.style.display='inline'; Codehighlighter1_1179_1268_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_1179_1268_Closed_Image onclick="this.style.display='none'; Codehighlighter1_1179_1268_Closed_Text.style.display='none'; Codehighlighter1_1179_1268_Open_Image.style.display='inline'; Codehighlighter1_1179_1268_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_1179_1268_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_1179_1268_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">58</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">             cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">data[i];<br></span><span style="COLOR: #008080">59</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">             e</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">((data[i]</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">20</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">e</span><span style="COLOR: #000000">?</span><span style="COLOR: #000000">(data[i]</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">20</span><span style="COLOR: #000000">:e);<br></span><span style="COLOR: #008080">60</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">        }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">61</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        sort(data,data</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">n);<br></span><span style="COLOR: #008080">62</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">      </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">  int *p=unique(data,data+n);<br></span><span style="COLOR: #008080">63</span><span style="COLOR: #008000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">       </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> n=p-data;</span><span style="COLOR: #008000"><br></span><span style="COLOR: #008080">64</span><span style="COLOR: #008000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif"></span><span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(s</span><span style="COLOR: #000000"><=</span><span style="COLOR: #000000">e)<br></span><span style="COLOR: #008080">65</span><span style="COLOR: #000000"><img id=Codehighlighter1_1383_1508_Open_Image onclick="this.style.display='none'; Codehighlighter1_1383_1508_Open_Text.style.display='none'; Codehighlighter1_1383_1508_Closed_Image.style.display='inline'; Codehighlighter1_1383_1508_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_1383_1508_Closed_Image onclick="this.style.display='none'; Codehighlighter1_1383_1508_Closed_Text.style.display='none'; Codehighlighter1_1383_1508_Open_Image.style.display='inline'; Codehighlighter1_1383_1508_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_1383_1508_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_1383_1508_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">66</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">           </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> mid</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">(s</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">e)</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">67</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">           </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(chk(mid))<br></span><span style="COLOR: #008080">68</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">              e</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">mid</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">69</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">           </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">70</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">              s</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">mid</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">71</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">        }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">72</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">s</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">endl;<br></span><span style="COLOR: #008080">73</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        make(s);<br></span><span style="COLOR: #008080">74</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">    }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">75</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">76</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif">}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">77</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"><br></span><span style="COLOR: #008080">78</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"></span></div> <img src ="http://www.shnenglu.com/yzhw/aggbug/130436.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/yzhw/" target="_blank">yzhw</a> 2010-10-19 14:24 <a href="http://www.shnenglu.com/yzhw/archive/2010/10/19/130436.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.hzmgdj.com.cn" target="_blank">国产—久久香蕉国产线看观看 </a>| <a href="http://www.9405.com.cn" target="_blank">97久久超碰国产精品旧版</a>| <a href="http://www.ruozhu.com.cn" target="_blank">久久精品成人</a>| <a href="http://www.mjiniu.cn" target="_blank">丰满少妇人妻久久久久久4</a>| <a href="http://www.xmqsgm.cn" target="_blank">亚洲AV无码久久精品蜜桃</a>| <a href="http://www.uqddn.cn" target="_blank">一本色道久久88综合日韩精品</a>| <a href="http://www.f938.cn" target="_blank">狠狠色丁香婷婷综合久久来来去</a>| <a href="http://www.woaisheying.cn" target="_blank">国内精品久久久人妻中文字幕</a>| <a href="http://www.peopleim.cn" target="_blank">亚洲精品乱码久久久久66</a>| <a href="http://www.love20.com.cn" target="_blank">狠狠精品久久久无码中文字幕</a>| <a href="http://www.xiaomaidou.cn" target="_blank">久久婷婷人人澡人人爽人人爱</a>| <a href="http://www.6159vs.cn" target="_blank">久久天天躁狠狠躁夜夜2020一</a>| <a href="http://www.ttlll.cn" target="_blank">国产偷久久久精品专区</a>| <a href="http://www.qnzj.org.cn" target="_blank">亚洲乱码精品久久久久..</a>| <a href="http://www.y0ing.cn" target="_blank">欧美大香线蕉线伊人久久</a>| <a href="http://www.hf169.cn" target="_blank">久久99精品久久久久子伦</a>| <a href="http://www.bbwdx.cn" target="_blank">99久久免费国产精精品</a>| <a href="http://www.baiyaiyungroup.com.cn" target="_blank">97久久超碰国产精品旧版</a>| <a href="http://www.lishi5.cn" target="_blank">亚洲国产精品婷婷久久</a>| <a href="http://www.0756400.cn" target="_blank">久久久久无码精品国产app</a>| <a href="http://www.xhlwd.cn" target="_blank">欧美国产成人久久精品</a>| <a href="http://www.cqxuexi.cn" target="_blank">中文成人久久久久影院免费观看</a>| <a href="http://www.kkha.cn" target="_blank">久久久久亚洲精品日久生情</a>| <a href="http://www.uovd.cn" target="_blank">人妻少妇久久中文字幕</a>| <a href="http://www.6dyx.cn" target="_blank">久久免费视频网站</a>| <a href="http://www.everspringgroup.cn" target="_blank">国产精品成人99久久久久</a>| <a href="http://www.tanzhun.cn" target="_blank">免费一级做a爰片久久毛片潮</a>| <a href="http://www.52chaoyang.cn" target="_blank">精品久久久久久无码不卡</a>| <a href="http://www.jjzrhg.cn" target="_blank">日本欧美久久久久免费播放网</a>| <a href="http://www.whcxjj.cn" target="_blank">精品久久久久久中文字幕</a>| <a href="http://www.sa88.cn" target="_blank">久久久久国产一级毛片高清板</a>| <a href="http://www.psaus.cn" target="_blank">漂亮人妻被中出中文字幕久久 </a>| <a href="http://www.9n7.com.cn" target="_blank">国产亚州精品女人久久久久久</a>| <a href="http://www.ode.net.cn" target="_blank">久久久久久A亚洲欧洲AV冫</a>| <a href="http://www.nanning315.cn" target="_blank">精品久久久久久久国产潘金莲 </a>| <a href="http://www.zmlxs.cn" target="_blank">午夜肉伦伦影院久久精品免费看国产一区二区三区 </a>| <a href="http://www.mianfeiwg.cn" target="_blank">久久精品中文无码资源站</a>| <a href="http://www.zhy-gl.cn" target="_blank">麻豆精品久久久一区二区</a>| <a href="http://www.5ihubei.cn" target="_blank">久久夜色精品国产www</a>| <a href="http://www.uuribao.com.cn" target="_blank">亚洲va中文字幕无码久久</a>| <a href="http://www.cnhtyy.cn" target="_blank">国产91久久综合</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>