﻿<?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++博客-ACM___________________________-随笔分类-MOOD</title><link>http://www.cppblog.com/MiYu/category/14403.html</link><description>                             ______________白白の屋</description><language>zh-cn</language><lastBuildDate>Tue, 02 Nov 2010 11:52:39 GMT</lastBuildDate><pubDate>Tue, 02 Nov 2010 11:52:39 GMT</pubDate><ttl>60</ttl><item><title>10省赛后 好累........</title><link>http://www.cppblog.com/MiYu/archive/2010/11/01/132034.html</link><dc:creator>MiYu</dc:creator><author>MiYu</author><pubDate>Mon, 01 Nov 2010 12:52:00 GMT</pubDate><guid>http://www.cppblog.com/MiYu/archive/2010/11/01/132034.html</guid><wfw:comment>http://www.cppblog.com/MiYu/comments/132034.html</wfw:comment><comments>http://www.cppblog.com/MiYu/archive/2010/11/01/132034.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/MiYu/comments/commentRss/132034.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/MiYu/services/trackbacks/132034.html</trackback:ping><description><![CDATA[<span  style="font-family: verdana, 'courier new'; font-size: 14px; line-height: 21px; "><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">MiYu原创, 转帖请注明 : 转载自&nbsp;<a href="http://baiyun.me/"><font  color="#000000">______________白白の屋</font></a>&nbsp;&nbsp;<img src="http://www.cnblogs.com/Emoticons/baimantou/223332482.gif" alt="">&nbsp;&nbsp;</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">&nbsp;</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">&nbsp;前天去 长沙理工大学参加了省赛, &nbsp;感觉就是一个字 ---&gt; 累........... &nbsp;&nbsp;<img src="http://www.cnblogs.com/Emoticons/baimantou/134950908.gif">&nbsp;&nbsp; &nbsp;住不好 &nbsp; 吃不好 , &nbsp;大清早 5点就 一群人吵个不停 &nbsp;<img src="http://www.cnblogs.com/Emoticons/baimantou/103828514.gif"></p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">&nbsp;</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">&nbsp;那车坐得太晕了 , 到现在头还晕呼呼的 ......&nbsp;<img src="http://www.cnblogs.com/Emoticons/baimantou/21522581.gif">, &nbsp; 比赛的时候 理解错了 一开始就往英文题里找水题, 结果 看rank &nbsp;竟然直接就是ABC三题.......</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">&nbsp;</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">这邪恶的............<img src="http://www.cnblogs.com/Emoticons/baimantou/201937664.gif">&nbsp;&nbsp; &nbsp; &nbsp;涛神速度水掉3题, 接下来就是 杯具时间了 , &nbsp;E 题的 2分答案 时 &nbsp;错了个 else, &nbsp;D 题 羊神 一开始思路就错了 , 我的F 题......</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">&nbsp;</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">那火大的DFS , 剪枝一直没剪成功, &nbsp;这题提交次数最多的 恐怕就是我了 =. &nbsp;= &nbsp; &nbsp;一直在 WA 和 TLE 之间徘徊 表示很郁闷, 最后半小时一看rank , 发现</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">&nbsp;</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">就算做出来 也是个 银一 &nbsp;= . = &nbsp;&nbsp;<img src="http://www.cnblogs.com/Emoticons/baimantou/134950908.gif">&nbsp;&nbsp; 头晕死了 &nbsp; 直接放弃........... &nbsp; &nbsp; &nbsp; &nbsp;总体来说....... 这次我们好杯具</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">&nbsp;</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">就像这图一样 &nbsp;&nbsp;<img src="http://www.cnblogs.com/images/cnblogs_com/miyu/%E6%9C%AA%E5%91%BD%E5%90%8D.jpg" width="269" height="118" alt="">&nbsp;</p></span>
<img src ="http://www.cppblog.com/MiYu/aggbug/132034.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/MiYu/" target="_blank">MiYu</a> 2010-11-01 20:52 <a href="http://www.cppblog.com/MiYu/archive/2010/11/01/132034.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>程序员情书</title><link>http://www.cppblog.com/MiYu/archive/2010/10/05/128715.html</link><dc:creator>MiYu</dc:creator><author>MiYu</author><pubDate>Tue, 05 Oct 2010 13:20:00 GMT</pubDate><guid>http://www.cppblog.com/MiYu/archive/2010/10/05/128715.html</guid><wfw:comment>http://www.cppblog.com/MiYu/comments/128715.html</wfw:comment><comments>http://www.cppblog.com/MiYu/archive/2010/10/05/128715.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/MiYu/comments/commentRss/128715.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/MiYu/services/trackbacks/128715.html</trackback:ping><description><![CDATA[<div style="background-color: rgb(238, 238, 238); font-size: 13px; border-left-color: rgb(204, 204, 204); padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; "><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000; ">程序员情书&nbsp;&nbsp;<br>我能抽象出整个世界．．．&nbsp;<br>但是我不能抽象出你．．．&nbsp;<br>因为你在我心中是那么的具体．．．&nbsp;<br>所以我的世界并不完整．．．&nbsp;<br>我可以重载甚至覆盖这个世界里的任何一种方法．．．&nbsp;<br>但是我却不能重载对你的思念．．．&nbsp;<br>也许命中注定了&nbsp;你在我的世界里永远的烙上了静态的属性．．．&nbsp;<br>而我不慎调用了爱你这个方法．．．&nbsp;<br>当我义无返顾的把自己作为参数传进这个方法时．．．&nbsp;<br>我才发现爱上你是一个死循环．．．&nbsp;<br>它不停的返回对你的思念压入我心里的堆栈．．．&nbsp;<br>在这无尽的黑夜中．．．&nbsp;<br>我的内存里已经再也装不下别人．．．&nbsp;<br>我不停的向系统申请空间．．．&nbsp;<br>但却捕获一个异常－－－我爱的人不爱我．．．&nbsp;<br>为了解决这个异常．．．&nbsp;<br>我愿意虚拟出最后一点内存．．．&nbsp;<br>把所有我能实现的方法地址压入堆栈．．．&nbsp;<br>并且在栈尾压入最后一个方法－－－将字符串＂我爱你，你爱我吗？＂传递给你．．．&nbsp;<br>如果返回值为真－－我将用尽一生去爱你．．．&nbsp;<br>否则－－我将释放掉所有系统资源<img src="http://www.cppblog.com/Images/dot.gif"><br></span></div><img src ="http://www.cppblog.com/MiYu/aggbug/128715.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/MiYu/" target="_blank">MiYu</a> 2010-10-05 21:20 <a href="http://www.cppblog.com/MiYu/archive/2010/10/05/128715.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>TLE 中的教训</title><link>http://www.cppblog.com/MiYu/archive/2010/08/03/MiYu.html</link><dc:creator>MiYu</dc:creator><author>MiYu</author><pubDate>Tue, 03 Aug 2010 01:16:00 GMT</pubDate><guid>http://www.cppblog.com/MiYu/archive/2010/08/03/MiYu.html</guid><wfw:comment>http://www.cppblog.com/MiYu/comments/122031.html</wfw:comment><comments>http://www.cppblog.com/MiYu/archive/2010/08/03/MiYu.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/MiYu/comments/commentRss/122031.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/MiYu/services/trackbacks/122031.html</trackback:ping><description><![CDATA[<span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><span style="TEXT-ALIGN: left; LINE-HEIGHT: 22px; BORDER-COLLAPSE: collapse; FONT-FAMILY: Verdana, Helvetica, Arial, sans-serif; COLOR: rgb(68,68,68); FONT-SIZE: 14px" class=Apple-style-span><span style="COLOR: #000000"><font size=3>//MiYu原创, 转帖请注明 : 转载自 </font><a href="http://www.cppblog.com/MiYu/"><font size=3>______________白白の屋</font></a></span><br><br>今天下午做 1171 题的时候 TLE 了将近一下午 , 一直在找原因 , 最终在 ambition<span class=Apple-converted-space>&nbsp;</span><br style="LINE-HEIGHT: normal; WORD-WRAP: break-word">大牛的提示下 ,原来 题目有一句话 "with a negative integer terminates input "<br style="LINE-HEIGHT: normal; WORD-WRAP: break-word">意思是 输入以一个负数结束, 但是测试数据为
<div style="BACKGROUND-IMAGE: url(http://www.cppleyuan.com/images/default/codebg.gif); BORDER-BOTTOM: rgb(204,204,204) 1px solid; BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 5px; LINE-HEIGHT: normal; OVERFLOW-X: hidden; OVERFLOW-Y: hidden; BACKGROUND-COLOR: rgb(247,247,247); MARGIN: 10px 0px; PADDING-LEFT: 10px; WIDTH: 586px; PADDING-RIGHT: 0px; WORD-WRAP: break-word; BACKGROUND-POSITION: 0px 0px; BORDER-TOP: rgb(204,204,204) 1px solid; BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-TOP: 10px; background-origin: initial; background-clip: initial" class=blockcode>
<div style="LINE-HEIGHT: normal; WORD-WRAP: break-word" id=code0>
<ol style="PADDING-BOTTOM: 0px; LINE-HEIGHT: normal; MARGIN: 0px 0px 0px 10px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; WORD-WRAP: break-word; PADDING-TOP: 0px">
    <li style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 1.8em; LIST-STYLE-TYPE: decimal-leading-zero; MARGIN: 0px 0px 0px 2em; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; FONT-FAMILY: Monaco, Consolas, ''Lucida Console'', ''Courier New'', serif; WORD-WRAP: break-word; FONT-SIZE: 12px; PADDING-TOP: 0px">2<br style="LINE-HEIGHT: normal; WORD-WRAP: break-word">
    <li style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 1.8em; LIST-STYLE-TYPE: decimal-leading-zero; MARGIN: 0px 0px 0px 2em; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; FONT-FAMILY: Monaco, Consolas, ''Lucida Console'', ''Courier New'', serif; WORD-WRAP: break-word; FONT-SIZE: 12px; PADDING-TOP: 0px">10 1<br style="LINE-HEIGHT: normal; WORD-WRAP: break-word">
    <li style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 1.8em; LIST-STYLE-TYPE: decimal-leading-zero; MARGIN: 0px 0px 0px 2em; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; FONT-FAMILY: Monaco, Consolas, ''Lucida Console'', ''Courier New'', serif; WORD-WRAP: break-word; FONT-SIZE: 12px; PADDING-TOP: 0px">20 1<br style="LINE-HEIGHT: normal; WORD-WRAP: break-word">
    <li style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 1.8em; LIST-STYLE-TYPE: decimal-leading-zero; MARGIN: 0px 0px 0px 2em; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; FONT-FAMILY: Monaco, Consolas, ''Lucida Console'', ''Courier New'', serif; WORD-WRAP: break-word; FONT-SIZE: 12px; PADDING-TOP: 0px">3<br style="LINE-HEIGHT: normal; WORD-WRAP: break-word">
    <li style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 1.8em; LIST-STYLE-TYPE: decimal-leading-zero; MARGIN: 0px 0px 0px 2em; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; FONT-FAMILY: Monaco, Consolas, ''Lucida Console'', ''Courier New'', serif; WORD-WRAP: break-word; FONT-SIZE: 12px; PADDING-TOP: 0px">10 1<span class=Apple-converted-space>&nbsp;</span><br style="LINE-HEIGHT: normal; WORD-WRAP: break-word">
    <li style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 1.8em; LIST-STYLE-TYPE: decimal-leading-zero; MARGIN: 0px 0px 0px 2em; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; FONT-FAMILY: Monaco, Consolas, ''Lucida Console'', ''Courier New'', serif; WORD-WRAP: break-word; FONT-SIZE: 12px; PADDING-TOP: 0px">20 2<br style="LINE-HEIGHT: normal; WORD-WRAP: break-word">
    <li style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 1.8em; LIST-STYLE-TYPE: decimal-leading-zero; MARGIN: 0px 0px 0px 2em; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; FONT-FAMILY: Monaco, Consolas, ''Lucida Console'', ''Courier New'', serif; WORD-WRAP: break-word; FONT-SIZE: 12px; PADDING-TOP: 0px">30 1<br style="LINE-HEIGHT: normal; WORD-WRAP: break-word">
    <li style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 1.8em; LIST-STYLE-TYPE: decimal-leading-zero; MARGIN: 0px 0px 0px 2em; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; FONT-FAMILY: Monaco, Consolas, ''Lucida Console'', ''Courier New'', serif; WORD-WRAP: break-word; FONT-SIZE: 12px; PADDING-TOP: 0px">-1 </li>
</ol>
</div>
<em style="TEXT-ALIGN: left; LINE-HEIGHT: normal; FONT-STYLE: normal; WORD-WRAP: break-word; COLOR: rgb(102,102,102); MARGIN-LEFT: 43px; FONT-SIZE: 12px; CURSOR: pointer" onclick="copycode($('code0'));">复制代码</em></div>
所以想当然的将程序结束标志 为 n + 1, 结果就一直TLE了.<span class=Apple-converted-space>&nbsp;</span><br style="LINE-HEIGHT: normal; WORD-WRAP: break-word">所以 以后读题的时候一定要仔细了, 不能有一点马虎.</span></span> 
<img src ="http://www.cppblog.com/MiYu/aggbug/122031.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/MiYu/" target="_blank">MiYu</a> 2010-08-03 09:16 <a href="http://www.cppblog.com/MiYu/archive/2010/08/03/MiYu.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>