﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Darren-随笔分类-未分类</title><link>http://www.cppblog.com/Darren/category/12423.html</link><description>C++ 及算法</description><language>zh-cn</language><lastBuildDate>Fri, 30 Apr 2010 12:04:22 GMT</lastBuildDate><pubDate>Fri, 30 Apr 2010 12:04:22 GMT</pubDate><ttl>60</ttl><item><title>换个博客，重新开始学习。。。</title><link>http://www.cppblog.com/Darren/archive/2010/04/30/114008.html</link><dc:creator>Darren</dc:creator><author>Darren</author><pubDate>Thu, 29 Apr 2010 16:52:00 GMT</pubDate><guid>http://www.cppblog.com/Darren/archive/2010/04/30/114008.html</guid><wfw:comment>http://www.cppblog.com/Darren/comments/114008.html</wfw:comment><comments>http://www.cppblog.com/Darren/archive/2010/04/30/114008.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/Darren/comments/commentRss/114008.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/Darren/services/trackbacks/114008.html</trackback:ping><description><![CDATA[新博客地址: <a  href="http://dnizna.javaeye.com/">http://dnizna.javaeye.com/</a><br><img src ="http://www.cppblog.com/Darren/aggbug/114008.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/Darren/" target="_blank">Darren</a> 2010-04-30 00:52 <a href="http://www.cppblog.com/Darren/archive/2010/04/30/114008.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>长沙腾达路由猫设置  星空极速破解</title><link>http://www.cppblog.com/Darren/archive/2008/11/03/65874.html</link><dc:creator>Darren</dc:creator><author>Darren</author><pubDate>Mon, 03 Nov 2008 12:29:00 GMT</pubDate><guid>http://www.cppblog.com/Darren/archive/2008/11/03/65874.html</guid><wfw:comment>http://www.cppblog.com/Darren/comments/65874.html</wfw:comment><comments>http://www.cppblog.com/Darren/archive/2008/11/03/65874.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cppblog.com/Darren/comments/commentRss/65874.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/Darren/services/trackbacks/65874.html</trackback:ping><description><![CDATA[
		<p>
				<br />
				<br />星空极速破解<br /><br />先使用星空极速拨号。<br />然后    控制面板-----&gt;   管理工具 ------&gt;  事件查看器------&gt;Windows日志------&gt;系统------&gt;双击右边RemoteAccess--------&gt;  会看到用户 某某  用设备与PPPOE连接-------&gt; 那个用户名就是被改过的用户名<br />然后用Window自带的拨号建新链接， 用户名就用这个， 密码不改， 这样你就可以用Windows拨号了<br /><br /><br /><br /><br />长沙电信VPI/VCI:0/32    DNS:202.103.96.68<br /></p>
		<p>
				<br />
				<br />一． 登陆到TED8620R设置界面</p>
		<p>先将从宽带猫出来的网线接在电脑的网卡上（网卡为自动获取IP），打开电源，在IE</p>
		<p>浏览器地址栏内输入192.168.1.1回车，用户名输入root 密码也是root 即可进入设</p>
		<p>置界面。</p>
		<p>二． 必须知道isp供应商所提供的一下数据：</p>
		<p>（1）封装格式：<br />ATM  选2</p>
		<p>国内一般是以下三种方式：</p>
		<p>PPP OA VC-mux （PPP OA拨号方式）</p>
		<p>PPP OE LLC (PPP OE拨号方式)</p>
		<p>1483 Bridged IP LLC (固定IP地址方式)</p>
		<p>（2）VPI和VCI值</p>
		<p>腾达TED8620R 已经提供了全国常用的值，如不清楚请与当地的ISP供应商那边咨询。</p>
		<p>（2）拨号用户认证或IP地址</p>
		<p>一般PPPOE和PPPOA都会提供给客户用户名和密码。</p>
		<p>固定IP方式，ISP供应商会把IP地址、子网掩码、网关和DNS都会提供给你</p>
		<p>三． 现在就开始配置你的ADSL路由器了，点击快速设置，配置方式如下：</p>
		<p>ATM接口：可根据VPI/VCI的值来选择。比如（VPI是0，VCI是100，对应的接口是2，</p>
		<p>那你就选择2）</p>
		<p>运行模式：选择Enable</p>
		<p>封装格式：根据你的格式如上二（1）来选择</p>
		<p>VPI/VCI：选择接口后会自动显示所对应接口的VPI和VCI或自己添。</p>
		<p>桥接：选择Disable（关闭）</p>
		<p>IGMP:默认</p>
		<p>IP地址：如果你的封装格式是固定IP的（1483 Bridged IP LLC）那将ADSL服务商给</p>
		<p>你的IP地址输进去，如果不是，就默认（全部是0）</p>
		<p>子网掩码：与IP地址设置相同</p>
		<p>启用DHCP：如果你的封装格式是PPP的，就设置Enable；如果是固定IP的，就设置</p>
		<p>Disable</p>
		<p>Default Route：默认路由一定设置为Enable</p>
		<p>网关IP地址：与IP地址设法相同</p>
		<p>用户名密码：ISP供应商提供的用户名和密码</p>
		<p>启用DNS：设置为Enable</p>
		<p>主用DNS服务器，备用DNS服务器：服务商提供了就添，没有就默认。</p>
		<p>四． 输入完后点击提交－管理－提交＆重启－保存－重新启动。</p>
		<p>五． 等到重新启动后，到首页，看看广域网接口下面的接口的状态如果是绿色了，</p>
		<p>就ok了。然后在把ADSL猫出来的网线接在HUB或交换机上，就能共享上网了。</p>
		<p> </p>
<img src ="http://www.cppblog.com/Darren/aggbug/65874.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/Darren/" target="_blank">Darren</a> 2008-11-03 20:29 <a href="http://www.cppblog.com/Darren/archive/2008/11/03/65874.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Pku  1056  IMMEDIATE DECODABILITY</title><link>http://www.cppblog.com/Darren/archive/2008/10/30/65576.html</link><dc:creator>Darren</dc:creator><author>Darren</author><pubDate>Thu, 30 Oct 2008 12:03:00 GMT</pubDate><guid>http://www.cppblog.com/Darren/archive/2008/10/30/65576.html</guid><wfw:comment>http://www.cppblog.com/Darren/comments/65576.html</wfw:comment><comments>http://www.cppblog.com/Darren/archive/2008/10/30/65576.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/Darren/comments/commentRss/65576.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/Darren/services/trackbacks/65576.html</trackback:ping><description><![CDATA[
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">#include </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #0000ff">string</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />#include </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">vector</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />#include </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">algorithm</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />#include </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">iostream</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">using</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #0000ff">namespace</span>
				<span style="COLOR: #000000"> std;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">int</span>
				<span style="COLOR: #000000"> main()<br /><img id="Codehighlighter1_111_639_Open_Image" onclick="this.style.display='none'; Codehighlighter1_111_639_Open_Text.style.display='none'; Codehighlighter1_111_639_Closed_Image.style.display='inline'; Codehighlighter1_111_639_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_111_639_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_111_639_Closed_Text.style.display='none'; Codehighlighter1_111_639_Open_Image.style.display='inline'; Codehighlighter1_111_639_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span>
				<span id="Codehighlighter1_111_639_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.cppblog.com/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_111_639_Open_Text">
						<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">string</span>
						<span style="COLOR: #000000"> str;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">int</span>
						<span style="COLOR: #000000">    num</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000"> </span>
						<span style="COLOR: #000000">1</span>
						<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">while</span>
						<span style="COLOR: #000000">( cin </span>
						<span style="COLOR: #000000">&gt;&gt;</span>
						<span style="COLOR: #000000"> str )<br /><img id="Codehighlighter1_166_624_Open_Image" onclick="this.style.display='none'; Codehighlighter1_166_624_Open_Text.style.display='none'; Codehighlighter1_166_624_Closed_Image.style.display='inline'; Codehighlighter1_166_624_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_166_624_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_166_624_Closed_Text.style.display='none'; Codehighlighter1_166_624_Open_Image.style.display='inline'; Codehighlighter1_166_624_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span>
						<span id="Codehighlighter1_166_624_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.cppblog.com/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_166_624_Open_Text">
								<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        vector</span>
								<span style="COLOR: #000000">&lt;</span>
								<span style="COLOR: #0000ff">string</span>
								<span style="COLOR: #000000">&gt;</span>
								<span style="COLOR: #000000">  d;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">if</span>
								<span style="COLOR: #000000">( str</span>
								<span style="COLOR: #000000">!=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">9</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> )  d.push_back( str );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">while</span>
								<span style="COLOR: #000000">( cin </span>
								<span style="COLOR: #000000">&gt;&gt;</span>
								<span style="COLOR: #000000"> str  </span>
								<span style="COLOR: #000000">&amp;&amp;</span>
								<span style="COLOR: #000000">  str</span>
								<span style="COLOR: #000000">!=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">9</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> )  d.push_back( str );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        sort( d.begin(), d.end() );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">bool</span>
								<span style="COLOR: #000000"> isok</span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">false</span>
								<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">for</span>
								<span style="COLOR: #000000">( size_t i</span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">1</span>
								<span style="COLOR: #000000">; i</span>
								<span style="COLOR: #000000">&lt;</span>
								<span style="COLOR: #000000"> d.size(); </span>
								<span style="COLOR: #000000">++</span>
								<span style="COLOR: #000000">i )<br /><img id="Codehighlighter1_428_455_Open_Image" onclick="this.style.display='none'; Codehighlighter1_428_455_Open_Text.style.display='none'; Codehighlighter1_428_455_Closed_Image.style.display='inline'; Codehighlighter1_428_455_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_428_455_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_428_455_Closed_Text.style.display='none'; Codehighlighter1_428_455_Open_Image.style.display='inline'; Codehighlighter1_428_455_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />             </span>
								<span style="COLOR: #0000ff">if</span>
								<span style="COLOR: #000000">( d[i].find( d[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"> </span>
								<span style="COLOR: #0000ff">string</span>
								<span style="COLOR: #000000">::npos )</span>
								<span id="Codehighlighter1_428_455_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.cppblog.com/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_428_455_Open_Text">
										<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                    isok</span>
										<span style="COLOR: #000000">=</span>
										<span style="COLOR: #000000"> </span>
										<span style="COLOR: #0000ff">true</span>
										<span style="COLOR: #000000">;  </span>
										<span style="COLOR: #0000ff">break</span>
										<span style="COLOR: #000000">; }</span>
								</span>
								<span style="COLOR: #000000">
										<br />
										<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">if</span>
								<span style="COLOR: #000000">( </span>
								<span style="COLOR: #000000">!</span>
								<span style="COLOR: #000000">isok ) cout </span>
								<span style="COLOR: #000000">&lt;&lt;</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">Set </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">&lt;&lt;</span>
								<span style="COLOR: #000000"> num</span>
								<span style="COLOR: #000000">++</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">&lt;&lt;</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> is immediately decodable</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">&lt;&lt;</span>
								<span style="COLOR: #000000"> endl;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">else</span>
								<span style="COLOR: #000000">        cout </span>
								<span style="COLOR: #000000">&lt;&lt;</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">Set </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">&lt;&lt;</span>
								<span style="COLOR: #000000"> num</span>
								<span style="COLOR: #000000">++</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">&lt;&lt;</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> is not immediately decodable</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">&lt;&lt;</span>
								<span style="COLOR: #000000"> endl;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span>
						</span>
						<span style="COLOR: #000000">
								<br />
								<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">return</span>
						<span style="COLOR: #000000"> </span>
						<span style="COLOR: #000000">0</span>
						<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span>
				</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
		</div>
<img src ="http://www.cppblog.com/Darren/aggbug/65576.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/Darren/" target="_blank">Darren</a> 2008-10-30 20:03 <a href="http://www.cppblog.com/Darren/archive/2008/10/30/65576.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Pku  1068  Parencodings</title><link>http://www.cppblog.com/Darren/archive/2008/10/30/65572.html</link><dc:creator>Darren</dc:creator><author>Darren</author><pubDate>Thu, 30 Oct 2008 11:44:00 GMT</pubDate><guid>http://www.cppblog.com/Darren/archive/2008/10/30/65572.html</guid><wfw:comment>http://www.cppblog.com/Darren/comments/65572.html</wfw:comment><comments>http://www.cppblog.com/Darren/archive/2008/10/30/65572.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/Darren/comments/commentRss/65572.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/Darren/services/trackbacks/65572.html</trackback:ping><description><![CDATA[
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">#include </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">iostream</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />#include </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">vector</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">using</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #0000ff">namespace</span>
				<span style="COLOR: #000000"> std;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">int</span>
				<span style="COLOR: #000000"> main()<br /><img id="Codehighlighter1_72_953_Open_Image" onclick="this.style.display='none'; Codehighlighter1_72_953_Open_Text.style.display='none'; Codehighlighter1_72_953_Closed_Image.style.display='inline'; Codehighlighter1_72_953_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_72_953_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_72_953_Closed_Text.style.display='none'; Codehighlighter1_72_953_Open_Image.style.display='inline'; Codehighlighter1_72_953_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span>
				<span id="Codehighlighter1_72_953_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.cppblog.com/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_72_953_Open_Text">
						<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">int</span>
						<span style="COLOR: #000000">  test;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    scanf(</span>
						<span style="COLOR: #000000">"</span>
						<span style="COLOR: #000000">%d</span>
						<span style="COLOR: #000000">"</span>
						<span style="COLOR: #000000">, </span>
						<span style="COLOR: #000000">&amp;</span>
						<span style="COLOR: #000000">test);<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">int</span>
						<span style="COLOR: #000000"> d[</span>
						<span style="COLOR: #000000">25</span>
						<span style="COLOR: #000000">];<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">while</span>
						<span style="COLOR: #000000">( test</span>
						<span style="COLOR: #000000">--</span>
						<span style="COLOR: #000000"> )<br /><img id="Codehighlighter1_139_938_Open_Image" onclick="this.style.display='none'; Codehighlighter1_139_938_Open_Text.style.display='none'; Codehighlighter1_139_938_Closed_Image.style.display='inline'; Codehighlighter1_139_938_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_139_938_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_139_938_Closed_Text.style.display='none'; Codehighlighter1_139_938_Open_Image.style.display='inline'; Codehighlighter1_139_938_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span>
						<span id="Codehighlighter1_139_938_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.cppblog.com/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_139_938_Open_Text">
								<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">int</span>
								<span style="COLOR: #000000"> n;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        vector</span>
								<span style="COLOR: #000000">&lt;</span>
								<span style="COLOR: #0000ff">char</span>
								<span style="COLOR: #000000">&gt;</span>
								<span style="COLOR: #000000">  t;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        scanf(</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">%d</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">, </span>
								<span style="COLOR: #000000">&amp;</span>
								<span style="COLOR: #000000">n );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </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"> </span>
								<span style="COLOR: #000000">0</span>
								<span style="COLOR: #000000">; i</span>
								<span style="COLOR: #000000">&lt;</span>
								<span style="COLOR: #000000"> n; </span>
								<span style="COLOR: #000000">++</span>
								<span style="COLOR: #000000">i ) scanf(</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">%d</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">, d</span>
								<span style="COLOR: #000000">+</span>
								<span style="COLOR: #000000"> i );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">int</span>
								<span style="COLOR: #000000"> cu</span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> d[</span>
								<span style="COLOR: #000000">0</span>
								<span style="COLOR: #000000">];<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </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"> </span>
								<span style="COLOR: #000000">0</span>
								<span style="COLOR: #000000">; i</span>
								<span style="COLOR: #000000">&lt;</span>
								<span style="COLOR: #000000"> cu; </span>
								<span style="COLOR: #000000">++</span>
								<span style="COLOR: #000000">i )  t.push_back( </span>
								<span style="COLOR: #000000">'</span>
								<span style="COLOR: #000000">(</span>
								<span style="COLOR: #000000">'</span>
								<span style="COLOR: #000000"> ); t.push_back( </span>
								<span style="COLOR: #000000">'</span>
								<span style="COLOR: #000000">)</span>
								<span style="COLOR: #000000">'</span>
								<span style="COLOR: #000000"> );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </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"> </span>
								<span style="COLOR: #000000">1</span>
								<span style="COLOR: #000000">; i</span>
								<span style="COLOR: #000000">&lt;</span>
								<span style="COLOR: #000000"> n; </span>
								<span style="COLOR: #000000">++</span>
								<span style="COLOR: #000000">i )<br /><img id="Codehighlighter1_365_487_Open_Image" onclick="this.style.display='none'; Codehighlighter1_365_487_Open_Text.style.display='none'; Codehighlighter1_365_487_Closed_Image.style.display='inline'; Codehighlighter1_365_487_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_365_487_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_365_487_Closed_Text.style.display='none'; Codehighlighter1_365_487_Open_Image.style.display='inline'; Codehighlighter1_365_487_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span>
								<span id="Codehighlighter1_365_487_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.cppblog.com/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_365_487_Open_Text">
										<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span>
										<span style="COLOR: #0000ff">int</span>
										<span style="COLOR: #000000">  a</span>
										<span style="COLOR: #000000">=</span>
										<span style="COLOR: #000000"> d[i]</span>
										<span style="COLOR: #000000">-</span>
										<span style="COLOR: #000000"> cu;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            cu</span>
										<span style="COLOR: #000000">=</span>
										<span style="COLOR: #000000"> d[i];<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            </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"> </span>
										<span style="COLOR: #000000">0</span>
										<span style="COLOR: #000000">; j</span>
										<span style="COLOR: #000000">&lt;</span>
										<span style="COLOR: #000000"> a; j</span>
										<span style="COLOR: #000000">++</span>
										<span style="COLOR: #000000"> )<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            t.push_back( </span>
										<span style="COLOR: #000000">'</span>
										<span style="COLOR: #000000">(</span>
										<span style="COLOR: #000000">'</span>
										<span style="COLOR: #000000"> );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            t.push_back( </span>
										<span style="COLOR: #000000">'</span>
										<span style="COLOR: #000000">)</span>
										<span style="COLOR: #000000">'</span>
										<span style="COLOR: #000000"> );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span>
								</span>
								<span style="COLOR: #000000">
										<br />
										<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">bool</span>
								<span style="COLOR: #000000">  b</span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">false</span>
								<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">for</span>
								<span style="COLOR: #000000">( size_t i</span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">0</span>
								<span style="COLOR: #000000">; i</span>
								<span style="COLOR: #000000">&lt;</span>
								<span style="COLOR: #000000"> t.size(); </span>
								<span style="COLOR: #000000">++</span>
								<span style="COLOR: #000000">i )<br /><img id="Codehighlighter1_551_915_Open_Image" onclick="this.style.display='none'; Codehighlighter1_551_915_Open_Text.style.display='none'; Codehighlighter1_551_915_Closed_Image.style.display='inline'; Codehighlighter1_551_915_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_551_915_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_551_915_Closed_Text.style.display='none'; Codehighlighter1_551_915_Open_Image.style.display='inline'; Codehighlighter1_551_915_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span>
								<span id="Codehighlighter1_551_915_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.cppblog.com/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_551_915_Open_Text">
										<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span>
										<span style="COLOR: #0000ff">if</span>
										<span style="COLOR: #000000">( t[i]</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"> )<br /><img id="Codehighlighter1_576_910_Open_Image" onclick="this.style.display='none'; Codehighlighter1_576_910_Open_Text.style.display='none'; Codehighlighter1_576_910_Closed_Image.style.display='inline'; Codehighlighter1_576_910_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_576_910_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_576_910_Closed_Text.style.display='none'; Codehighlighter1_576_910_Open_Image.style.display='inline'; Codehighlighter1_576_910_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span>
										<span id="Codehighlighter1_576_910_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
												<img src="http://www.cppblog.com/images/dot.gif" />
										</span>
										<span id="Codehighlighter1_576_910_Open_Text">
												<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
												<span style="COLOR: #0000ff">int</span>
												<span style="COLOR: #000000"> num</span>
												<span style="COLOR: #000000">=</span>
												<span style="COLOR: #000000"> </span>
												<span style="COLOR: #000000">0</span>
												<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
												<span style="COLOR: #0000ff">int</span>
												<span style="COLOR: #000000"> j</span>
												<span style="COLOR: #000000">=</span>
												<span style="COLOR: #000000"> i;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
												<span style="COLOR: #0000ff">for</span>
												<span style="COLOR: #000000">( ; j</span>
												<span style="COLOR: #000000">&gt;=</span>
												<span style="COLOR: #000000"> </span>
												<span style="COLOR: #000000">0</span>
												<span style="COLOR: #000000">; j</span>
												<span style="COLOR: #000000">--</span>
												<span style="COLOR: #000000"> )<br /><img id="Codehighlighter1_641_738_Open_Image" onclick="this.style.display='none'; Codehighlighter1_641_738_Open_Text.style.display='none'; Codehighlighter1_641_738_Closed_Image.style.display='inline'; Codehighlighter1_641_738_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_641_738_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_641_738_Closed_Text.style.display='none'; Codehighlighter1_641_738_Open_Image.style.display='inline'; Codehighlighter1_641_738_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                </span>
												<span id="Codehighlighter1_641_738_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
														<img src="http://www.cppblog.com/images/dot.gif" />
												</span>
												<span id="Codehighlighter1_641_738_Open_Text">
														<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                    </span>
														<span style="COLOR: #0000ff">if</span>
														<span style="COLOR: #000000">( t[j]</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"> ) num</span>
														<span style="COLOR: #000000">++</span>
														<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                    </span>
														<span style="COLOR: #0000ff">else</span>
														<span style="COLOR: #000000">             num</span>
														<span style="COLOR: #000000">--</span>
														<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                    </span>
														<span style="COLOR: #0000ff">if</span>
														<span style="COLOR: #000000">(  num</span>
														<span style="COLOR: #000000">==</span>
														<span style="COLOR: #000000"> </span>
														<span style="COLOR: #000000">0</span>
														<span style="COLOR: #000000"> ) </span>
														<span style="COLOR: #0000ff">break</span>
														<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                }</span>
												</span>
												<span style="COLOR: #000000">
														<br />
														<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
												<span style="COLOR: #0000ff">for</span>
												<span style="COLOR: #000000">( </span>
												<span style="COLOR: #0000ff">int</span>
												<span style="COLOR: #000000"> k</span>
												<span style="COLOR: #000000">=</span>
												<span style="COLOR: #000000"> j; k</span>
												<span style="COLOR: #000000">&lt;=</span>
												<span style="COLOR: #000000"> i; </span>
												<span style="COLOR: #000000">++</span>
												<span style="COLOR: #000000">k )<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
												<span style="COLOR: #0000ff">if</span>
												<span style="COLOR: #000000">(  t[k]</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"> ) num</span>
												<span style="COLOR: #000000">++</span>
												<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
												<span style="COLOR: #0000ff">if</span>
												<span style="COLOR: #000000">( </span>
												<span style="COLOR: #000000">!</span>
												<span style="COLOR: #000000">b )<br /><img id="Codehighlighter1_828_875_Open_Image" onclick="this.style.display='none'; Codehighlighter1_828_875_Open_Text.style.display='none'; Codehighlighter1_828_875_Closed_Image.style.display='inline'; Codehighlighter1_828_875_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_828_875_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_828_875_Closed_Text.style.display='none'; Codehighlighter1_828_875_Open_Image.style.display='inline'; Codehighlighter1_828_875_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                </span>
												<span id="Codehighlighter1_828_875_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
														<img src="http://www.cppblog.com/images/dot.gif" />
												</span>
												<span id="Codehighlighter1_828_875_Open_Text">
														<span style="COLOR: #000000">{        <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                    printf(</span>
														<span style="COLOR: #000000">"</span>
														<span style="COLOR: #000000">%d</span>
														<span style="COLOR: #000000">"</span>
														<span style="COLOR: #000000">, num );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                    b</span>
														<span style="COLOR: #000000">=</span>
														<span style="COLOR: #000000"> </span>
														<span style="COLOR: #0000ff">true</span>
														<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                }</span>
												</span>
												<span style="COLOR: #000000">
														<br />
														<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
												<span style="COLOR: #0000ff">else</span>
												<span style="COLOR: #000000"> printf(</span>
												<span style="COLOR: #000000">"</span>
												<span style="COLOR: #000000"> %d</span>
												<span style="COLOR: #000000">"</span>
												<span style="COLOR: #000000">, num );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span>
										</span>
										<span style="COLOR: #000000">    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span>
								</span>
								<span style="COLOR: #000000">
										<br />
										<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        printf(</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">\n</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">);<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span>
						</span>
						<span style="COLOR: #000000">
								<br />
								<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">return</span>
						<span style="COLOR: #000000"> </span>
						<span style="COLOR: #000000">0</span>
						<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span>
				</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
		</div>
<img src ="http://www.cppblog.com/Darren/aggbug/65572.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/Darren/" target="_blank">Darren</a> 2008-10-30 19:44 <a href="http://www.cppblog.com/Darren/archive/2008/10/30/65572.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Pku  1028  Web Navigation</title><link>http://www.cppblog.com/Darren/archive/2008/10/30/65554.html</link><dc:creator>Darren</dc:creator><author>Darren</author><pubDate>Thu, 30 Oct 2008 05:16:00 GMT</pubDate><guid>http://www.cppblog.com/Darren/archive/2008/10/30/65554.html</guid><wfw:comment>http://www.cppblog.com/Darren/comments/65554.html</wfw:comment><comments>http://www.cppblog.com/Darren/archive/2008/10/30/65554.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/Darren/comments/commentRss/65554.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/Darren/services/trackbacks/65554.html</trackback:ping><description><![CDATA[
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">#include </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">stdio.h</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />#include </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #0000ff">string</span>
				<span style="COLOR: #000000">.h</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">#define</span>
				<span style="COLOR: #000000"> N 110</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">char</span>
				<span style="COLOR: #000000"> str[</span>
				<span style="COLOR: #000000">10</span>
				<span style="COLOR: #000000">];<br /><img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">char</span>
				<span style="COLOR: #000000"> queue[N][</span>
				<span style="COLOR: #000000">100</span>
				<span style="COLOR: #000000">];<br /><img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">int</span>
				<span style="COLOR: #000000">  top</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #000000">0</span>
				<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">int</span>
				<span style="COLOR: #000000">  len</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #000000">1</span>
				<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">int</span>
				<span style="COLOR: #000000"> main()<br /><img id="Codehighlighter1_127_688_Open_Image" onclick="this.style.display='none'; Codehighlighter1_127_688_Open_Text.style.display='none'; Codehighlighter1_127_688_Closed_Image.style.display='inline'; Codehighlighter1_127_688_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_127_688_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_127_688_Closed_Text.style.display='none'; Codehighlighter1_127_688_Open_Image.style.display='inline'; Codehighlighter1_127_688_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span>
				<span id="Codehighlighter1_127_688_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.cppblog.com/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_127_688_Open_Text">
						<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    strcpy( queue[</span>
						<span style="COLOR: #000000">++</span>
						<span style="COLOR: #000000">top], </span>
						<span style="COLOR: #000000">"</span>
						<span style="COLOR: #000000">http://www.acm.org/</span>
						<span style="COLOR: #000000">"</span>
						<span style="COLOR: #000000"> );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">while</span>
						<span style="COLOR: #000000">( scanf(</span>
						<span style="COLOR: #000000">"</span>
						<span style="COLOR: #000000">%s</span>
						<span style="COLOR: #000000">"</span>
						<span style="COLOR: #000000">, str), strcmp( str, </span>
						<span style="COLOR: #000000">"</span>
						<span style="COLOR: #000000">QUIT</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">0</span>
						<span style="COLOR: #000000"> )<br /><img id="Codehighlighter1_233_673_Open_Image" onclick="this.style.display='none'; Codehighlighter1_233_673_Open_Text.style.display='none'; Codehighlighter1_233_673_Closed_Image.style.display='inline'; Codehighlighter1_233_673_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_233_673_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_233_673_Closed_Text.style.display='none'; Codehighlighter1_233_673_Open_Image.style.display='inline'; Codehighlighter1_233_673_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span>
						<span id="Codehighlighter1_233_673_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.cppblog.com/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_233_673_Open_Text">
								<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">if</span>
								<span style="COLOR: #000000">( strcmp( str, </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">VISIT</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">0</span>
								<span style="COLOR: #000000"> )<br /><img id="Codehighlighter1_271_356_Open_Image" onclick="this.style.display='none'; Codehighlighter1_271_356_Open_Text.style.display='none'; Codehighlighter1_271_356_Closed_Image.style.display='inline'; Codehighlighter1_271_356_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_271_356_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_271_356_Closed_Text.style.display='none'; Codehighlighter1_271_356_Open_Image.style.display='inline'; Codehighlighter1_271_356_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span>
								<span id="Codehighlighter1_271_356_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.cppblog.com/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_271_356_Open_Text">
										<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            scanf(</span>
										<span style="COLOR: #000000">"</span>
										<span style="COLOR: #000000">%s</span>
										<span style="COLOR: #000000">"</span>
										<span style="COLOR: #000000">, queue[</span>
										<span style="COLOR: #000000">++</span>
										<span style="COLOR: #000000">top] );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            printf(</span>
										<span style="COLOR: #000000">"</span>
										<span style="COLOR: #000000">%s\n</span>
										<span style="COLOR: #000000">"</span>
										<span style="COLOR: #000000">, queue[top] );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            len</span>
										<span style="COLOR: #000000">=</span>
										<span style="COLOR: #000000"> top;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span>
								</span>
								<span style="COLOR: #000000">
										<br />
										<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">else</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">if</span>
								<span style="COLOR: #000000">( strcmp( str, </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">BACK</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">0</span>
								<span style="COLOR: #000000"> )<br /><img id="Codehighlighter1_399_514_Open_Image" onclick="this.style.display='none'; Codehighlighter1_399_514_Open_Text.style.display='none'; Codehighlighter1_399_514_Closed_Image.style.display='inline'; Codehighlighter1_399_514_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_399_514_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_399_514_Closed_Text.style.display='none'; Codehighlighter1_399_514_Open_Image.style.display='inline'; Codehighlighter1_399_514_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span>
								<span id="Codehighlighter1_399_514_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.cppblog.com/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_399_514_Open_Text">
										<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            top</span>
										<span style="COLOR: #000000">--</span>
										<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span>
										<span style="COLOR: #0000ff">if</span>
										<span style="COLOR: #000000">( top</span>
										<span style="COLOR: #000000">&lt;</span>
										<span style="COLOR: #000000"> </span>
										<span style="COLOR: #000000">1</span>
										<span style="COLOR: #000000"> )<br /><img id="Codehighlighter1_430_472_Open_Image" onclick="this.style.display='none'; Codehighlighter1_430_472_Open_Text.style.display='none'; Codehighlighter1_430_472_Closed_Image.style.display='inline'; Codehighlighter1_430_472_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_430_472_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_430_472_Closed_Text.style.display='none'; Codehighlighter1_430_472_Open_Image.style.display='inline'; Codehighlighter1_430_472_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span>
										<span id="Codehighlighter1_430_472_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
												<img src="http://www.cppblog.com/images/dot.gif" />
										</span>
										<span id="Codehighlighter1_430_472_Open_Text">
												<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                printf(</span>
												<span style="COLOR: #000000">"</span>
												<span style="COLOR: #000000">Ignored\n</span>
												<span style="COLOR: #000000">"</span>
												<span style="COLOR: #000000">);<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                top</span>
												<span style="COLOR: #000000">++</span>
												<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span>
										</span>
										<span style="COLOR: #000000">
												<br />
												<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span>
										<span style="COLOR: #0000ff">else</span>
										<span style="COLOR: #000000"> printf(</span>
										<span style="COLOR: #000000">"</span>
										<span style="COLOR: #000000">%s\n</span>
										<span style="COLOR: #000000">"</span>
										<span style="COLOR: #000000">, queue[top] );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span>
								</span>
								<span style="COLOR: #000000">
										<br />
										<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">else</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #0000ff">if</span>
								<span style="COLOR: #000000">( strcmp( str, </span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">FORWARD</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">0</span>
								<span style="COLOR: #000000"> )<br /><img id="Codehighlighter1_560_670_Open_Image" onclick="this.style.display='none'; Codehighlighter1_560_670_Open_Text.style.display='none'; Codehighlighter1_560_670_Closed_Image.style.display='inline'; Codehighlighter1_560_670_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_560_670_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_560_670_Closed_Text.style.display='none'; Codehighlighter1_560_670_Open_Image.style.display='inline'; Codehighlighter1_560_670_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span>
								<span id="Codehighlighter1_560_670_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.cppblog.com/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_560_670_Open_Text">
										<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            top</span>
										<span style="COLOR: #000000">++</span>
										<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            <br /><img id="Codehighlighter1_594_627_Open_Image" onclick="this.style.display='none'; Codehighlighter1_594_627_Open_Text.style.display='none'; Codehighlighter1_594_627_Closed_Image.style.display='inline'; Codehighlighter1_594_627_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_594_627_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_594_627_Closed_Text.style.display='none'; Codehighlighter1_594_627_Open_Image.style.display='inline'; Codehighlighter1_594_627_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span>
										<span style="COLOR: #0000ff">if</span>
										<span style="COLOR: #000000">( top</span>
										<span style="COLOR: #000000">&gt;</span>
										<span style="COLOR: #000000"> len ) </span>
										<span id="Codehighlighter1_594_627_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
												<img src="http://www.cppblog.com/images/dot.gif" />
										</span>
										<span id="Codehighlighter1_594_627_Open_Text">
												<span style="COLOR: #000000">{  printf(</span>
												<span style="COLOR: #000000">"</span>
												<span style="COLOR: #000000">Ignored\n</span>
												<span style="COLOR: #000000">"</span>
												<span style="COLOR: #000000">);  top</span>
												<span style="COLOR: #000000">--</span>
												<span style="COLOR: #000000">; }</span>
										</span>
										<span style="COLOR: #000000">
												<br />
												<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span>
										<span style="COLOR: #0000ff">else</span>
										<span style="COLOR: #000000">  printf(</span>
										<span style="COLOR: #000000">"</span>
										<span style="COLOR: #000000">%s\n</span>
										<span style="COLOR: #000000">"</span>
										<span style="COLOR: #000000">, queue[top] );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span>
								</span>
								<span style="COLOR: #000000">
										<br />
										<img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span>
						</span>
						<span style="COLOR: #000000">
								<br />
								<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">return</span>
						<span style="COLOR: #000000"> </span>
						<span style="COLOR: #000000">0</span>
						<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span>
				</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
		</div>
<img src ="http://www.cppblog.com/Darren/aggbug/65554.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/Darren/" target="_blank">Darren</a> 2008-10-30 13:16 <a href="http://www.cppblog.com/Darren/archive/2008/10/30/65554.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Pku  1061   青蛙的约会</title><link>http://www.cppblog.com/Darren/archive/2008/10/24/64973.html</link><dc:creator>Darren</dc:creator><author>Darren</author><pubDate>Fri, 24 Oct 2008 15:45:00 GMT</pubDate><guid>http://www.cppblog.com/Darren/archive/2008/10/24/64973.html</guid><wfw:comment>http://www.cppblog.com/Darren/comments/64973.html</wfw:comment><comments>http://www.cppblog.com/Darren/archive/2008/10/24/64973.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/Darren/comments/commentRss/64973.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/Darren/services/trackbacks/64973.html</trackback:ping><description><![CDATA[
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">#include </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">stdio.h</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />__int64  result;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />__int64  gcd( __int64 a, __int64 b, __int64</span>
				<span style="COLOR: #000000">&amp;</span>
				<span style="COLOR: #000000"> x, __int64</span>
				<span style="COLOR: #000000">&amp;</span>
				<span style="COLOR: #000000"> y )<br /><img id="Codehighlighter1_99_229_Open_Image" onclick="this.style.display='none'; Codehighlighter1_99_229_Open_Text.style.display='none'; Codehighlighter1_99_229_Closed_Image.style.display='inline'; Codehighlighter1_99_229_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_99_229_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_99_229_Closed_Text.style.display='none'; Codehighlighter1_99_229_Open_Image.style.display='inline'; Codehighlighter1_99_229_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span>
				<span id="Codehighlighter1_99_229_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.cppblog.com/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_99_229_Open_Text">
						<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    __int64 t,ret;<br /><img id="Codehighlighter1_126_154_Open_Image" onclick="this.style.display='none'; Codehighlighter1_126_154_Open_Text.style.display='none'; Codehighlighter1_126_154_Closed_Image.style.display='inline'; Codehighlighter1_126_154_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_126_154_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_126_154_Closed_Text.style.display='none'; Codehighlighter1_126_154_Open_Image.style.display='inline'; Codehighlighter1_126_154_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">if</span>
						<span style="COLOR: #000000">( </span>
						<span style="COLOR: #000000">!</span>
						<span style="COLOR: #000000">b )</span>
						<span id="Codehighlighter1_126_154_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.cppblog.com/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_126_154_Open_Text">
								<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        x</span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">1</span>
								<span style="COLOR: #000000">,y</span>
								<span style="COLOR: #000000">=</span>
								<span style="COLOR: #000000"> </span>
								<span style="COLOR: #000000">0</span>
								<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">return</span>
								<span style="COLOR: #000000"> a;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span>
						</span>
						<span style="COLOR: #000000">
								<br />
								<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    ret</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000"> gcd( b, a</span>
						<span style="COLOR: #000000">%</span>
						<span style="COLOR: #000000"> b, x, y );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    t</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000"> x, x</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000"> y, y</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000"> t</span>
						<span style="COLOR: #000000">-</span>
						<span style="COLOR: #000000"> a</span>
						<span style="COLOR: #000000">/</span>
						<span style="COLOR: #000000"> b</span>
						<span style="COLOR: #000000">*</span>
						<span style="COLOR: #000000"> y;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">return</span>
						<span style="COLOR: #000000"> ret;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span>
				</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">bool</span>
				<span style="COLOR: #000000">  f( __int64 a, __int64 b, __int64 n )<br /><img id="Codehighlighter1_276_408_Open_Image" onclick="this.style.display='none'; Codehighlighter1_276_408_Open_Text.style.display='none'; Codehighlighter1_276_408_Closed_Image.style.display='inline'; Codehighlighter1_276_408_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_276_408_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_276_408_Closed_Text.style.display='none'; Codehighlighter1_276_408_Open_Image.style.display='inline'; Codehighlighter1_276_408_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span>
				<span id="Codehighlighter1_276_408_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.cppblog.com/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_276_408_Open_Text">
						<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    __int64  d, e, x, y, i;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    d</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000"> gcd( a, n, x, y );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">if</span>
						<span style="COLOR: #000000">( b</span>
						<span style="COLOR: #000000">%</span>
						<span style="COLOR: #000000"> d</span>
						<span style="COLOR: #000000">!=</span>
						<span style="COLOR: #000000"> </span>
						<span style="COLOR: #000000">0</span>
						<span style="COLOR: #000000"> ) </span>
						<span style="COLOR: #0000ff">return</span>
						<span style="COLOR: #000000"> </span>
						<span style="COLOR: #0000ff">false</span>
						<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    result</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000"> ( x</span>
						<span style="COLOR: #000000">*</span>
						<span style="COLOR: #000000"> (b</span>
						<span style="COLOR: #000000">/</span>
						<span style="COLOR: #000000"> d )</span>
						<span style="COLOR: #000000">%</span>
						<span style="COLOR: #000000"> n</span>
						<span style="COLOR: #000000">+</span>
						<span style="COLOR: #000000"> n )</span>
						<span style="COLOR: #000000">%</span>
						<span style="COLOR: #000000"> n;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">return</span>
						<span style="COLOR: #000000"> </span>
						<span style="COLOR: #0000ff">true</span>
						<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span>
				</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">int</span>
				<span style="COLOR: #000000"> main()<br /><img id="Codehighlighter1_423_643_Open_Image" onclick="this.style.display='none'; Codehighlighter1_423_643_Open_Text.style.display='none'; Codehighlighter1_423_643_Closed_Image.style.display='inline'; Codehighlighter1_423_643_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_423_643_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_423_643_Closed_Text.style.display='none'; Codehighlighter1_423_643_Open_Image.style.display='inline'; Codehighlighter1_423_643_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span>
				<span id="Codehighlighter1_423_643_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.cppblog.com/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_423_643_Open_Text">
						<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    __int64 x, y,m,n,l;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">while</span>
						<span style="COLOR: #000000">( scanf(</span>
						<span style="COLOR: #000000">"</span>
						<span style="COLOR: #000000">%I64d%I64d%I64d%I64d%I64d</span>
						<span style="COLOR: #000000">"</span>
						<span style="COLOR: #000000">,</span>
						<span style="COLOR: #000000">&amp;</span>
						<span style="COLOR: #000000">x,</span>
						<span style="COLOR: #000000">&amp;</span>
						<span style="COLOR: #000000">y,</span>
						<span style="COLOR: #000000">&amp;</span>
						<span style="COLOR: #000000">m,</span>
						<span style="COLOR: #000000">&amp;</span>
						<span style="COLOR: #000000">n,</span>
						<span style="COLOR: #000000">&amp;</span>
						<span style="COLOR: #000000">l)</span>
						<span style="COLOR: #000000">!=</span>
						<span style="COLOR: #000000"> EOF )<br /><img id="Codehighlighter1_515_628_Open_Image" onclick="this.style.display='none'; Codehighlighter1_515_628_Open_Text.style.display='none'; Codehighlighter1_515_628_Closed_Image.style.display='inline'; Codehighlighter1_515_628_Closed_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_515_628_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_515_628_Closed_Text.style.display='none'; Codehighlighter1_515_628_Open_Image.style.display='inline'; Codehighlighter1_515_628_Open_Text.style.display='inline';" src="http://www.cppblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span>
						<span id="Codehighlighter1_515_628_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.cppblog.com/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_515_628_Open_Text">
								<span style="COLOR: #000000">{<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">if</span>
								<span style="COLOR: #000000">( f( n</span>
								<span style="COLOR: #000000">-</span>
								<span style="COLOR: #000000"> m, x</span>
								<span style="COLOR: #000000">-</span>
								<span style="COLOR: #000000"> y, l ) )  printf(</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">%I64d\n</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">, result );<br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">else</span>
								<span style="COLOR: #000000">                      printf(</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">Impossible\n</span>
								<span style="COLOR: #000000">"</span>
								<span style="COLOR: #000000">);<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span>
						</span>
						<span style="COLOR: #000000">
								<br />
								<img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">return</span>
						<span style="COLOR: #000000"> </span>
						<span style="COLOR: #000000">0</span>
						<span style="COLOR: #000000">;<br /><img src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span>
				</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.cppblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
		</div>
<img src ="http://www.cppblog.com/Darren/aggbug/64973.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/Darren/" target="_blank">Darren</a> 2008-10-24 23:45 <a href="http://www.cppblog.com/Darren/archive/2008/10/24/64973.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>