﻿<?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>博客园-Binary Race</title><link>http://www.cnblogs.com/ecogiser/</link><description /><language>zh-cn</language><lastBuildDate>Wed, 27 Aug 2008 23:47:09 GMT</lastBuildDate><pubDate>Wed, 27 Aug 2008 23:47:09 GMT</pubDate><ttl>60</ttl><item><title>Blog moved to</title><link>http://www.cnblogs.com/ecogiser/archive/2007/05/01/733904.html</link><dc:creator>Binary Race</dc:creator><author>Binary Race</author><pubDate>Tue, 01 May 2007 01:49:00 GMT</pubDate><guid>http://www.cnblogs.com/ecogiser/archive/2007/05/01/733904.html</guid><wfw:comment>http://www.cnblogs.com/ecogiser/comments/733904.html</wfw:comment><comments>http://www.cnblogs.com/ecogiser/archive/2007/05/01/733904.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ecogiser/comments/commentRss/733904.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ecogiser/services/trackbacks/733904.html</trackback:ping><description><![CDATA[<a title="http://min-qin.blogspot.com/" href="http://min-qin.blogspot.com/">http://min-qin.blogspot.com</a> <img src ="http://www.cnblogs.com/ecogiser/aggbug/733904.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41924/" target="_blank">[新闻]中国软件协会：SAP羞辱国产软件是不正当竞争</a>]]></description></item><item><title>趋势决赛落下帷幕，比赛结果还算满意</title><link>http://www.cnblogs.com/ecogiser/archive/2006/08/04/477613.html</link><dc:creator>Binary Race</dc:creator><author>Binary Race</author><pubDate>Fri, 04 Aug 2006 01:55:00 GMT</pubDate><guid>http://www.cnblogs.com/ecogiser/archive/2006/08/04/477613.html</guid><wfw:comment>http://www.cnblogs.com/ecogiser/comments/477613.html</wfw:comment><comments>http://www.cnblogs.com/ecogiser/archive/2006/08/04/477613.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/ecogiser/comments/commentRss/477613.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ecogiser/services/trackbacks/477613.html</trackback:ping><description><![CDATA[<p>
   <img style="WIDTH: 635px; HEIGHT: 438px" height=597 src="http://202.117.33.48/DasBlog/content/binary/SSL20561.JPG" width=833 border=0>
</p>
<p>
   拿了一个“Best Coding”单项奖，出乎我们的意料，本来以为能在另外两个单项奖上有所作为的。<br>
   我们的软件实际测试环节排名是第三，但由于其他的分数低了一些，比如团队合作、计划实施等表面上的东西丢了一些分，所以最后的总排名是第四。<br>
   团队合作、计划实施等这些表面上的东西不是不重要，我们也是有的，只是没有通过某种方式变现出来，所以评委也没法评估好坏了。
</p>
<p>
   整个比赛还是非常有收获的，基本上见识了一个软件开发的大致流程及其复杂性。趋势这个公司给我的印象也非常不错，很有朝气，比赛组织得也是井井有条，很多方面都考虑得比较周到。<br>
   但在比赛组织方面还是有一些可以改进的地方，比如“不能上网”这个限制条件，赛后我和队友开玩笑说：如果能用1小时google，也许我们能拿个第一：P。
</p>
<p>
   这当然不是胡说的，赛题主要是关于网络安全方面，我们都是非计算机专业的，看计算机专业的普通词汇还行，但是网络安全的专业词汇就不行了，以至于我们到最后才把题目的一个关键问题搞清楚（当时已经来不及作修改了）。<br>
   另外我们的一个队员一直在钻研一个关键问题，但是到最后没有形成完成的解决方案，其中一个checksum算法就把我们卡住了半天，书上没有详细的资料，我们竟然自己在那里反演这个算法！！
</p>
<p>
   这当然也说明了我们的基本功还是不扎实。我觉得这些基本的东西能用就行了，谁能全部记住啊，关键是要有敏锐的思维和超强的学习能力。
</p>
<p>
   四天的比赛还有许多见闻，许多感想，就不一一道来了，总之要真想在软件这一行干下去的话，要学的，要实践的，还有许多，现在还差得太远，但愿还有机会：）
</p>
<p>
   相关报道见：<a href="http://sd.csdn.net/subject/trendmicro/" target=_blank>http://sd.csdn.net/subject/trendmicro/</a> 
</p>
<img width="0" height="0" src="http://202.117.33.48/DasBlog/aggbug.ashx?id=fd598b9f-bac1-445d-8410-e1a07ca65076" />
<br />
<hr />Ecogiser's Blog<img src ="http://www.cnblogs.com/ecogiser/aggbug/477613.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41923/" target="_blank">[新闻]福布斯：Facebook网站十大最火爆游戏</a>]]></description></item><item><title>Herbert</title><link>http://www.cnblogs.com/ecogiser/archive/2006/07/02/477615.html</link><dc:creator>Binary Race</dc:creator><author>Binary Race</author><pubDate>Sun, 02 Jul 2006 03:29:00 GMT</pubDate><guid>http://www.cnblogs.com/ecogiser/archive/2006/07/02/477615.html</guid><wfw:comment>http://www.cnblogs.com/ecogiser/comments/477615.html</wfw:comment><comments>http://www.cnblogs.com/ecogiser/archive/2006/07/02/477615.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cnblogs.com/ecogiser/comments/commentRss/477615.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ecogiser/services/trackbacks/477615.html</trackback:ping><description><![CDATA[<p><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font size="3"><span style="font-family: 宋体;">参加</span><span lang="EN-US">2006</span><span style="font-family: 宋体;">年的</span><span lang="EN-US">Imagine cup</span><span style="font-family: 宋体;">的预选赛时，时间已经不多了，第一轮结束就不能再登陆</span><span lang="EN-US">Herbert</span><span style="font-family: 宋体;">了，非常遗憾没有解决掉所有的关，不过当时留了个心眼，把</span><span lang="EN-US">Herbert</span><span style="font-family: 宋体;">登陆时与服务器通讯的原始</span><span lang="EN-US">tcp</span><span style="font-family: 宋体;">包抓了下来，一直想分析一下，然后让</span><span lang="EN-US">herbert</span><span style="font-family: 宋体;">直接读取包中的内容来启动。花了三天时间，终于整完了：</span></font><a title="Herbert" href="http://www.cnblogs.com/Files/ecogiser/Herbert061107.rar">Herbert</a></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font face="Times New Roman"><font size="3"><span style="font-family: 宋体;">我破解完的</span><span lang="EN-US">Herbert</span><span style="font-family: 宋体;">有几个小</span><span lang="EN-US">bug</span><span style="font-family: 宋体;">：</span></font> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">1．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><font face="Times New Roman"><font size="3"><span style="font-family: 宋体;">每个小关我以前写的解决方案都在，但是换行符变成了&#8220;</span><span lang="EN-US">..</span><span style="font-family: 宋体;">&#8221;，得把</span><span lang="EN-US">..</span><span style="font-family: 宋体;">去掉并回车才能运行。</span></font> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">2．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><font face="Times New Roman"><font size="3"><span style="font-family: 宋体;">每个小关机器人的初始位置不对，必须按一下开始（</span><span lang="EN-US">Ctrl+G</span><span style="font-family: 宋体;">）才能显示正确的位置。</span></font> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">3．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><span style="font-family: 宋体;"><font face="Times New Roman"><font size="3">暂时不能保存写的解决方案。</font></font></span><font face="Times New Roman"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">4．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><span style="font-family: 宋体;"><font face="Times New Roman"><font size="3">计分好像有差错。</font></font></span><font face="Times New Roman"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><o:p><font face="Times New Roman"><font size="3">&nbsp;</font> </font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;"><font face="Times New Roman"><font size="3">破解过程：</font></font></span><font face="Times New Roman"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">1．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><font face="Times New Roman"><font size="3"><span style="font-family: 宋体;">分析</span><span lang="EN-US">tcp</span><span style="font-family: 宋体;">包，过滤掉无用的，错误的包，把错位的包根据</span><span lang="EN-US">seq</span><span style="font-family: 宋体;">、</span><span lang="EN-US">ack</span><span style="font-family: 宋体;">和</span><span lang="EN-US">len</span><span style="font-family: 宋体;">码排好顺序。</span></font> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">2．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><font face="Times New Roman"><font size="3"><span style="font-family: 宋体;">提取出</span><span lang="EN-US">Data</span><span style="font-family: 宋体;">，发现是个</span><span lang="EN-US">xml</span><span style="font-family: 宋体;">。</span></font> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">3．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><font face="Times New Roman"><font size="3"><span style="font-family: 宋体;">原先</span><span lang="EN-US">Herbert</span><span style="font-family: 宋体;">通过</span><span lang="EN-US">webservices</span><span style="font-family: 宋体;">获得一个</span><span lang="EN-US">dataset</span><span style="font-family: 宋体;">，现在&#8220;</span><span lang="EN-US">override</span><span style="font-family: 宋体;">&#8221;这个过程，直接从</span><span lang="EN-US">xml</span><span style="font-family: 宋体;">得到</span><span lang="EN-US">dataset</span><span style="font-family: 宋体;">。</span></font> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><o:p><font face="Times New Roman"><font size="3">&nbsp;</font> </font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;"><font face="Times New Roman"><font size="3">想法：</font></font></span><font face="Times New Roman"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">1．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><font face="Times New Roman"><font size="3"><span style="font-family: 宋体;">做成</span><span lang="EN-US">web</span><span style="font-family: 宋体;">版本的，加上</span><span lang="EN-US">AJAX</span><span style="font-family: 宋体;">，注册了以后直接在网页上玩，然后来个积分榜&#8230;&#8230;，注册用户还可以自己建关让大家玩</span></font> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><o:p><font face="Times New Roman"><font size="3">&nbsp;</font> </font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font face="Times New Roman"><font size="3"><span lang="EN-US">Note</span><span style="font-family: 宋体;">：</span></font> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">1．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><span style="font-family: 宋体;"><font face="Times New Roman"><font size="3">用户密码随意。</font></font></span><font face="Times New Roman"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">2．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><span lang="EN-US"><font face="Times New Roman"><font size="3">Dotnet framework1.1</font></font></span><font face="Times New Roman"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">3．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><font face="Times New Roman"><font size="3"><span style="font-family: 宋体;">玩的时候把下方的</span><span lang="EN-US">speed</span><span style="font-family: 宋体;">调到最高比较舒服，要不然</span><span lang="EN-US">Herbert</span><span style="font-family: 宋体;">走得太慢。</span></font> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">4．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><font face="Times New Roman"><font size="3"><span style="font-family: 宋体;">开始的</span><span lang="EN-US">loadingdata</span><span style="font-family: 宋体;">过程较长，是正常的。</span></font> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span lang="EN-US"><span><font face="Times New Roman"><font size="3">5．</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; </span></font></span></span><font face="Times New Roman"><font size="3"><span style="font-family: 宋体;">一定要注意</span><span lang="EN-US">herbert</span><span style="font-family: 宋体;">的初始位置可能不对，按一下开始（</span><span lang="EN-US">Ctrl+G</span><span style="font-family: 宋体;">）才能显示正确的位置。</span></font> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;"><font face="Times New Roman"><font size="3">第一关的解决方案是：</font></font></span><font face="Times New Roman"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><font size="3">a(A):rArAa(Ass)</font></font></span><font face="Times New Roman"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><font size="3">a()</font></font></span><font face="Times New Roman"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><o:p><font face="Times New Roman"><font size="3"></font></font></o:p></span><font face="Times New Roman">&gt;&gt; </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman"></font></font></span><font face="Times New Roman">&nbsp; </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">Herbert 玩法：</font></font></span><font face="Times New Roman"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman"></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman"><a href="http://www.wildnoodle.com/ic2006/UI/Compete/Tutorial.aspx">官方规则（英语），</a>翻译了几条主要部分：</font></font></span></span><font face="Times New Roman"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman">1.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">使用</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">h</font></font></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">语言对机器人进行编程</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"> <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman">2.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">目标是机器人按到所有的&#8220;</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">button</font></font></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">&#8221;（白色），并且需要避让开灰色的&#8220;</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">button</font></font></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">&#8221;和&#8220;</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">wall</font></font></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">&#8221;</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"> <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman">3.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">按到灰色按钮将重置所有已经被按到的白色按钮，&#8220;</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">wall</font></font></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">&#8221;将阻挡机器人的前进。</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"> <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt; text-align: left;" align="left"><font face="Times New Roman"><font face="Times New Roman"><span style="font-size: 14pt; color: black;" lang="EN-US"><span>4.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 14pt; color: black;" lang="EN-US">h</span></font><span style="font-size: 14pt; color: black; font-family: 宋体;">语言：</span><span style="font-size: 14pt; color: black;" lang="EN-US"> <o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; text-indent: -21pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman">a)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">有着一般高级语言的元素：</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">statements, procedures, parameters, arguments, and recursion<o:p></o:p> </font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; text-indent: -21pt; text-align: left;" align="left"><font face="Times New Roman"><font face="Times New Roman"><span style="font-size: 14pt; color: black;" lang="EN-US"><span>b)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 14pt; color: black;" lang="EN-US">h</span></font><span style="font-size: 14pt; color: black; font-family: 宋体;">语言的指令只有三个：</span><font face="Times New Roman"><strong><span style="font-size: 14pt; color: black;" lang="EN-US">s</span></strong><span style="font-size: 14pt; color: black;" lang="EN-US">(</span></font><span style="font-size: 14pt; color: black; font-family: 宋体;">前进一步</span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman">), <strong>r </strong>(</font></span><span style="font-size: 14pt; color: black; font-family: 宋体;">右转</span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman">), <strong>l </strong>(</font></span><span style="font-size: 14pt; color: black; font-family: 宋体;">左转</span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman">)</font></span><span style="font-size: 14pt; color: black; font-family: 宋体;">。</span><span style="font-size: 14pt; color: black;" lang="EN-US"> <o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; text-indent: -21pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman">c)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">过程的定义：</font></span><font face="Times New Roman"><font face="Times New Roman"><strong><span style="font-size: 14pt; color: black;" lang="EN-US">x</span></strong><span style="font-size: 14pt; color: black;" lang="EN-US">[<strong>(P</strong></span><strong><span style="font-size: 11pt; color: black;" lang="EN-US">1</span></strong><strong><span style="font-size: 14pt; color: black;" lang="EN-US">,P</span></strong><strong><span style="font-size: 11pt; color: black;" lang="EN-US">2</span></strong><strong><span style="font-size: 14pt; color: black;" lang="EN-US">,...,P</span></strong><strong><span style="font-size: 11pt; color: black;" lang="EN-US">k</span></strong><strong><span style="font-size: 14pt; color: black;" lang="EN-US">)</span></strong><span style="font-size: 14pt; color: black;" lang="EN-US">]<strong>:y</strong></span><strong><span style="font-size: 11pt; color: black;" lang="EN-US">1</span></strong><strong><span style="font-size: 14pt; color: black;" lang="EN-US">y</span></strong><strong><span style="font-size: 11pt; color: black;" lang="EN-US">2</span></strong><strong><span style="font-size: 14pt; color: black;" lang="EN-US">y</span></strong><strong><span style="font-size: 11pt; color: black;" lang="EN-US">3</span></strong><span style="font-size: 14pt; color: black;" lang="EN-US">...<strong>y</strong></span><strong><span style="font-size: 11pt; color: black;" lang="EN-US">n </span></strong></font><strong><span style="font-size: 11pt; color: black; font-family: 宋体;">，</span></strong><strong><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman">x </font></span></strong><span style="font-size: 14pt; color: black; font-family: 宋体;">是除了</span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman">s</font></span><span style="font-size: 14pt; color: black; font-family: 宋体;">，</span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman">r</font></span><span style="font-size: 14pt; color: black; font-family: 宋体;">，</span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman">l</font></span><span style="font-size: 14pt; color: black; font-family: 宋体;">的任何小写字母</span><font face="Times New Roman"><span style="font-size: 14pt; color: black;" lang="EN-US">, <strong>P</strong></span><strong><span style="font-size: 11pt; color: black;" lang="EN-US">i </span></strong></font><span style="font-size: 14pt; color: black; font-family: 宋体;">是参数</span><font face="Times New Roman"><span style="font-size: 14pt; color: black;" lang="EN-US">, <strong>y</strong></span><strong><span style="font-size: 11pt; color: black;" lang="EN-US">i </span></strong></font><span style="font-size: 14pt; color: black; font-family: 宋体;">是任何指令</span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman">, 0 &lt;=<strong>k </strong>&lt;=15, and <strong>n </strong>&gt;= 0. If <strong>k </strong>= 0 </font></span><span style="font-size: 14pt; color: black; font-family: 宋体;">说明该过程没有参数。</span><span style="font-size: 14pt; color: black;" lang="EN-US"> <o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; text-indent: -21pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman">d)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">参数可以是数字，也可以是指令组合</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"> <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; text-indent: -21pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman">e)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">多说也说不清楚，看几个例子，可以在</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">Herbert</font></font></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">客户端的</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">level0</font></font></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">里面练习练习：</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"> <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 63pt; text-indent: -63pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span><font face="Times New Roman"><font face="Times New Roman">i.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">a(a):sa(A-1)<br>a<o:p></o:p> </font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 63pt; text-indent: -63pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span><font face="Times New Roman"><font face="Times New Roman">ii.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">b:sssrb<br>b<o:p></o:p> </font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 63pt; text-indent: -63pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span><font face="Times New Roman"><font face="Times New Roman">iii.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">a:ssssra<br>sssa<o:p></o:p> </font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 63pt; text-indent: -63pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span><font face="Times New Roman"><font face="Times New Roman">iv.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">a(A,B):f(B)ra(A-1,B)<br>f(A):sf(A-1)<br>a(4,5)<o:p></o:p> </font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 63pt; text-indent: -63pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span><font face="Times New Roman"><font face="Times New Roman">v.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">a(A,B,C):f(B)Ca(A-1,B,C)<br>f(A):sf(A-1)<br>a(4,5,r)<o:p></o:p> </font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; text-indent: -21pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman">f)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">每个字母和数字算</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">1</font></font></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">个</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">byte</font></font></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">，符号不算</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"> <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman">5.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black; font-family: 宋体;"><font face="Times New Roman">计分规则：</font></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"> <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left;" align="left"><font face="Times New Roman"><font color="#000000"><span style="font-size: 14pt; font-family: 宋体;">设：</span><span style="font-size: 14pt;" lang="EN-US"> <o:p></o:p></span></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left;" align="left"><font face="Times New Roman"><font color="#000000"><strong><span style="font-size: 14pt;" lang="EN-US"><font face="Times New Roman">Points</font></span></strong><span style="font-size: 14pt; font-family: 宋体;">：根据难度设置的关卡分值</span><span style="font-size: 14pt;" lang="EN-US"> <o:p></o:p></span></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left;" align="left"><font face="Times New Roman"><font color="#000000"><strong><span style="font-size: 14pt;" lang="EN-US"><font face="Times New Roman">TotalButtons </font></span></strong><span style="font-size: 14pt; font-family: 宋体;">：每关的白色按钮</span><span style="font-size: 14pt;" lang="EN-US"> <o:p></o:p></span></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left;" align="left"><font face="Times New Roman"><font color="#000000"><strong><span style="font-size: 14pt;" lang="EN-US"><font face="Times New Roman">Buttons</font></span></strong><strong><span style="font-size: 14pt; font-family: 宋体;">：</span></strong><span style="font-size: 14pt; font-family: 宋体;">按到的白色按钮</span><span style="font-size: 14pt;" lang="EN-US"> <o:p></o:p></span></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left;" align="left"><font face="Times New Roman"><font color="#000000"><strong><span style="font-size: 14pt;" lang="EN-US"><font face="Times New Roman">MaxBytes </font></span></strong><span style="font-size: 14pt; font-family: 宋体;">：每关的最大允许</span><span style="font-size: 14pt;" lang="EN-US"><font face="Times New Roman">bytes<o:p></o:p> </font></span></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left;" align="left"><font face="Times New Roman"><font color="#000000"><strong><span style="font-size: 14pt;" lang="EN-US"><font face="Times New Roman">Bytes </font></span></strong><span style="font-size: 14pt; font-family: 宋体;">：实际使用的</span><span style="font-size: 14pt;" lang="EN-US"><font face="Times New Roman">bytes<o:p></o:p> </font></span></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; text-indent: -21pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman">a)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">If Buttons = TotalButtons and Bytes &lt;= MaxBytes<br><strong>score</strong> = (Points*MaxBytes)/Bytes.<o:p></o:p> </font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; text-indent: -21pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><font face="Times New Roman"><font face="Times New Roman">b)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">If Buttons &lt; TotalButtons or Bytes &gt; MaxBytes, you have not solved the level. <strong>Score</strong> = Buttons*PointsPerButton<br>PointsPerButton is determined as follows:<o:p></o:p> </font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 63pt; text-indent: -63pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span><font face="Times New Roman"><font face="Times New Roman">i.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">If Bytes &lt;= MaxBytes, PointsPerButton = (Points/(2*TotalButtons)). <o:p></o:p></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 63pt; text-indent: -63pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span><font face="Times New Roman"><font face="Times New Roman">ii.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">If MaxBytes &lt; Bytes &lt;= 2*MaxBytes, PointsPerButton = (Points*(2*MaxBytes -Bytes)/(2*MaxBytes*TotalButtons)). <o:p></o:p></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 63pt; text-indent: -63pt; text-align: left;" align="left"><span style="font-size: 14pt; color: black;" lang="EN-US"><span><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span><font face="Times New Roman"><font face="Times New Roman">iii.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></font></span></span><span style="font-size: 14pt; color: black;" lang="EN-US"><font face="Times New Roman"><font face="Times New Roman">If 2*MaxBytes &lt; Bytes, PointsPerButton = 0<o:p></o:p> </font></font></span></p>
<p><font face="Times New Roman">&nbsp;</font></p>
<font face="Times New Roman"><img src="http://202.117.33.48/DasBlog/aggbug.ashx?id=a0e0d294-910a-4793-be52-424d369ee6d4" height="0" width="0"> <br>
</font><hr>
<font face="Times New Roman">Ecogiser's Blog </font> <img src ="http://www.cnblogs.com/ecogiser/aggbug/477615.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41922/" target="_blank">[新闻]谷歌允许用户评论搜索结果调整顺序</a>]]></description></item><item><title>颈椎、中考与菜谱</title><link>http://www.cnblogs.com/ecogiser/archive/2006/06/23/477616.html</link><dc:creator>Binary Race</dc:creator><author>Binary Race</author><pubDate>Fri, 23 Jun 2006 14:14:00 GMT</pubDate><guid>http://www.cnblogs.com/ecogiser/archive/2006/06/23/477616.html</guid><wfw:comment>http://www.cnblogs.com/ecogiser/comments/477616.html</wfw:comment><comments>http://www.cnblogs.com/ecogiser/archive/2006/06/23/477616.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ecogiser/comments/commentRss/477616.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ecogiser/services/trackbacks/477616.html</trackback:ping><description><![CDATA[<p>
   周二，颈椎又开始抗议了，不是简单的肩膀疼，而是头疼，看来又得好好休息几天了。<br>
   刚好，mm的mm中考，她妈又刚好出差，我就和mm回来给她做饭了。<br>
   这几天的菜谱真的很不错啊，估计能长上几斤了：）
</p>
<p>
   星期三：咖喱鸡，咖喱放的稍微有些少，没有上次有味，但是整体还是很不错的。<br>
   星期四：红烧肉，第一次做红烧肉，非常不错，一餐就吃光了，就是肥肉和肉皮稍微有些少了。<br>
   星期五：牛肉炖胡萝卜+番茄。前些天作了几次牛肉炖番茄，这次看来，番茄只要放两个，有酸味就可以了，其余的配料是次要的，主要为了添饱肚子。ps：牛肉番茄汤加一些面包屑就是大名鼎鼎的罗宋汤了。
</p>
<p>
   这些都是我mm主勺，可不是我不想做菜，我抢不过她，哈哈，她的兴致太高了，我只能打打下手了，不过明天的鲫鱼汤和后天的可乐鸡可是我的拿手好菜，她就得打下手了，呵呵。
</p>
<p>
   我很奇怪，每次同学或朋友问到我是南方人，就是南方人好啊，南方人会做饭啊，似乎有些歧视会做饭的男人似的。<br>
   不过还好，我不做饭，我只做拿手菜。
</p>
<img width="0" height="0" src="http://202.117.33.48/DasBlog/aggbug.ashx?id=b895b9b8-8dca-4a3a-8d16-d75752af626f" />
<br />
<hr />Ecogiser's Blog<img src ="http://www.cnblogs.com/ecogiser/aggbug/477616.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41921/" target="_blank">[新闻]Internet 另一超级漏洞被公布</a>]]></description></item><item><title>TopCoder 算法比赛图论实战1—最小生成树问题</title><link>http://www.cnblogs.com/ecogiser/archive/2006/06/15/477617.html</link><dc:creator>Binary Race</dc:creator><author>Binary Race</author><pubDate>Thu, 15 Jun 2006 08:31:00 GMT</pubDate><guid>http://www.cnblogs.com/ecogiser/archive/2006/06/15/477617.html</guid><wfw:comment>http://www.cnblogs.com/ecogiser/comments/477617.html</wfw:comment><comments>http://www.cnblogs.com/ecogiser/archive/2006/06/15/477617.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ecogiser/comments/commentRss/477617.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ecogiser/services/trackbacks/477617.html</trackback:ping><description><![CDATA[<p>
   <a href="http://www.topcoder.com/stat?c=problem_statement&amp;pm=1864&amp;rd=4655">Problem
   Statement</a>
</p>
<p>
   这个问题需要求解在一个城市网中，连接所有城市的最小代价，一个典型的最小生成树问题。<br>
   需要注意的是，每个城市只能朝一个方向修路，所以两个城市之间的最小代价不是（X+Y）/2，而是Max（X,）<br>
   解决方案如下：
</p>
<p>
   <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> System;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> System.Collections.Generic;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> System.Collections;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> System.Text;<br>
   <br>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//最小生成树问题</span>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">public</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">class</span> CityLink<br>
   {<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> N;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">bool</span>[,]
   map;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">bool</span>[]
   visited;<br>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">bool</span> AllConnect()<br>
   {<br>
   &nbsp; visited <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">bool</span>[N];<span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//very
   importent!!!!</span>
   <br>
   &nbsp; dfs(0);<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;
   for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> i <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   i &lt; N; i++)<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;
   if</span> (!visited[i])<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   return</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">false</span>;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;
   return</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">true</span>;<br>
   }<br>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">void</span> dfs(<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> i)<br>
   {<br>
   &nbsp; visited[i] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">true</span>;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;
   for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> j <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   j &lt; N; j++)<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;
   if</span> (map[i, j] &amp;&amp; !visited[j])<br>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dfs(j);<br>
   }<br>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">public</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> timeTaken(<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>[]
   x, <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>[]
   y)<br>
   {<br>
   &nbsp; N <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> x.Length;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;
   int</span>[,] d <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>[N,
   N];<br>
   &nbsp; map <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">bool</span>[N,
   N];<br>
   <br>
   &nbsp; List&lt;<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>&gt;
   edgesv <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> List&lt;<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>&gt;();<span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//所有不同长度的边</span>
   <br>
   &nbsp; Hashtable edges <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> Hashtable();<span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//每个边都连接了哪些顶点</span>
   <br>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;
   for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> i <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   i !<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> N;
   i++)<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;
   &nbsp;for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> j <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> i;
   j !<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> N;
   j++)<br>
   &nbsp;&nbsp; &nbsp;{<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;
   &nbsp;&nbsp; if</span> (x[i] == x[j])<br>
   &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; d[i, j] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> (Math.Abs(y[i] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">-</span> y[j]) <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span> 1) <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">/</span> 2;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;
   &nbsp;&nbsp; else</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">if</span> (y[i]
   == y[j])<br>
   &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; d[i, j] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> (Math.Abs(x[i] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">-</span> x[j]) <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span> 1) <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">/</span> 2;<br>
   <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;
   &nbsp;&nbsp;//只能朝一个方向走，不能改变方向？</span>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;
   &nbsp;&nbsp;else</span>
   <br>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;d[i, j] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> Math.Max(Math.Abs(x[i] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">-</span> x[j]),
   Math.Abs(y[i] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">-</span> y[j]));<br>
   <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   &nbsp;&nbsp;//d[i, j] = (Math.Abs(x[i] - x[j]) + Math.Abs(y[i] - y[j]) + 1) / 2;</span>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;
   &nbsp;&nbsp;if</span> (!edgesv.Contains(d[i, j]))<br>
   &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; edgesv.Add(d[i, j]);<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   if</span> (edges.Contains(d[i, j]))<br>
   &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;{<br>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;((List&lt;<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>&gt;)edges[d[i,
   j]]).Add(i);<br>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;((List&lt;<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>&gt;)edges[d[i,
   j]]).Add(j);<br>
   &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;}<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;&nbsp;
   &nbsp;else</span>
   <br>
   &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;{<br>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;List&lt;<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>&gt;
   tmp <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> List&lt;<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>&gt;();<br>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmp.Add(i);<br>
   &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; tmp.Add(j);<br>
   &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; edges.Add(d[i, j], tmp);<br>
   &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;}<br>
   &nbsp;&nbsp;&nbsp; }<br>
   <br>
   &nbsp; edgesv.Sort();<span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//Kruskal算法需要从最小的边开始，所以这里排序一下</span>
   <br>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;
   //Kruskal</span>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;
   for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> i <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   i &lt; edgesv.Count; i++)<br>
   &nbsp; {<br>
   <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;
   //Conect two points</span>
   <br>
   &nbsp;&nbsp;&nbsp; List&lt;<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>&gt;
   points <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> (List&lt;<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>&gt;)edges[edgesv[i]];<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;
   for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> j <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   j &lt; points.Count; j += 2)<br>
   &nbsp;&nbsp;&nbsp; {<br>
   &nbsp;&nbsp; &nbsp;&nbsp; map[points[j], points[j <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span> 1]] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">true</span>;<br>
   &nbsp;&nbsp;&nbsp; &nbsp; map[points[j+1], points[j]] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">true</span>;<br>
   &nbsp;&nbsp;&nbsp; }<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;
   if</span> (AllConnect())<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;&nbsp;&nbsp;
   &nbsp; return</span> edgesv[i];<br>
   &nbsp; }<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&nbsp;
   return</span> -1;<br>
   }<br>
   <br>
</p>
><img width="0" height="0" src="http://202.117.33.48/DasBlog/aggbug.ashx?id=77febd91-a9d2-4a95-9d54-8802a1736ec7" />
<br />
<hr />Ecogiser's Blog<img src ="http://www.cnblogs.com/ecogiser/aggbug/477617.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41920/" target="_blank">[新闻]3 个独特的未来搜索引擎</a>]]></description></item><item><title>My TopCoder Card</title><link>http://www.cnblogs.com/ecogiser/archive/2006/06/09/477618.html</link><dc:creator>Binary Race</dc:creator><author>Binary Race</author><pubDate>Fri, 09 Jun 2006 04:52:00 GMT</pubDate><guid>http://www.cnblogs.com/ecogiser/archive/2006/06/09/477618.html</guid><wfw:comment>http://www.cnblogs.com/ecogiser/comments/477618.html</wfw:comment><comments>http://www.cnblogs.com/ecogiser/archive/2006/06/09/477618.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/ecogiser/comments/commentRss/477618.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ecogiser/services/trackbacks/477618.html</trackback:ping><description><![CDATA[<html>
<head>
   <script language="JavaScript">
<!--
var MM_contentVersion = 6;
var MM_FlashCanPlay = false;
var plugin = (navigator.mimeTypes
    && navigator.mimeTypes["application/x-shockwave-flash"])
    ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
  var words = navigator.plugins["Shockwave Flash"].description.split(" ");
  for (var i = 0; i < words.length; ++i) {
    if (isNaN(parseInt(words[i])))
        continue;
    var MM_PluginVersion = words[i];
  }
  MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
        && (navigator.appVersion.indexOf("Win") != -1)) {
  document.write( '<SCR' + 'IPT LANGUAGE=VBScript\> \n ');
  document.write( 'on error resume next \n ');
  document.write( 'MM_FlashCanPlay = ( IsObject(CreateObject ');
  document.write( '("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n ');
  document.write( '</SCR' + 'IPT\> \n ');
}
//-->
</script>
</head>
<body>
   <script language="JavaScript">
<!--
if ( MM_FlashCanPlay ) {
document.write( '<object ');
document.write( 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
document.write( 'codebase="http://fpdownload.macromedia.com" ');
document.write( '/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
document.write( 'width="400" ');
document.write( 'height="410" ');
document.write( 'id="tc_card" ');
document.write( 'align="middle"> ');
document.write( '<param name="allowScriptAccess" value="sameDomain" /> ');
document.write( '<param name="movie" ');
document.write( 'value="http://www.topcoder.com/i/card/tc_card.swf?memberID=20089431"/> ');
document.write( '<param name="menu" value="false" /> ');
document.write( '<param name="quality" value="high" /> ');
document.write( '<param name="bgcolor" value="#ffffff" /> ');
document.write( '<embed ');
document.write( 'src="http://www.topcoder.com/i/card/tc_card.swf?memberID=20089431" ');
document.write( 'menu="false" ');
document.write( 'quality="high" ');
document.write( 'bgcolor="#ffffff" ');
document.write( 'width="400" ');
document.write( 'height="410" ');
document.write( 'name="tc_card" ');
document.write( 'align="middle" ');
document.write( 'allowScriptAccess="sameDomain" ');
document.write( 'type="application/x-shockwave-flash" ');
document.write( 'pluginspage="http://www.macromedia.com/go/getflashplayer" /> ');
document.write( '</object> ');
}

if (!MM_FlashCanPlay){
document.write( '<A href="http://www.macromedia.com/shockwave ');
document.write( '/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank"> ');
document.write( '<img src="http://www.topcoder.com/i/card/noFlash.gif" border="0"></A> ');
}
// -->
</script>
</body>
</html>
<img width="0" height="0" src="http://202.117.33.48/DasBlog/aggbug.ashx?id=6a8b69cb-2be2-4ae3-befa-967c03afeede" />
<br />
<hr />Ecogiser's Blog<img src ="http://www.cnblogs.com/ecogiser/aggbug/477618.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41919/" target="_blank">[新闻]诺基亚新机N85 N79发布</a>]]></description></item><item><title>下午7点 topcoder SRM 306</title><link>http://www.cnblogs.com/ecogiser/archive/2006/06/08/477619.html</link><dc:creator>Binary Race</dc:creator><author>Binary Race</author><pubDate>Thu, 08 Jun 2006 07:12:00 GMT</pubDate><guid>http://www.cnblogs.com/ecogiser/archive/2006/06/08/477619.html</guid><wfw:comment>http://www.cnblogs.com/ecogiser/comments/477619.html</wfw:comment><comments>http://www.cnblogs.com/ecogiser/archive/2006/06/08/477619.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ecogiser/comments/commentRss/477619.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ecogiser/services/trackbacks/477619.html</trackback:ping><description><![CDATA[<p>
   <a href="http://www.topcoder.com/tc?module=MatchDetails&amp;rd=9986">http://www.topcoder.com/tc?module=MatchDetails&amp;rd=9986</a>
</p>
<p>
   好久没有做题了，不是时间不好，就是有事不在。。。
</p>
<p>
   //太郁闷了，居然一道题都没有做出来，最后发现45%的人都是0分，还有一些欣慰<br>
   以下分析了<a href="http://www.topcoder.com/tc?module=MemberProfile&amp;cr=10574855">petr</a>大牛的解决方案，他居然在23分钟把三个题做完了！！！
</p>
<p>
   1:BifidSortMachine<br>
   <a href="http://www.topcoder.com/stat?c=problem_statement&amp;pm=6415&amp;rd=9986">Problem
   Statement</a>
   <br>
   Solution:<br>
   <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> System;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> System.Collections.Generic;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> System.Text;<br>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">namespace</span> googlecodejam<br>
   {<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">public</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">class</span> BifidSortMachine<br>
   {<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">public</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> countMoves(<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>[]
   a)<br>
   {<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>[]
   b <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>[])a.Clone();<br>
   Array.Sort(b);<br>
   Dictionary&lt;<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>, <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>&gt;
   d <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> Dictionary&lt;<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>, <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>&gt;();<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> i <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   i &lt; b.Length; ++i)<br>
   d[b[i]] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> i;<span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//各个元素在第几个</span>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> i <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   i &lt; a.Length; ++i)<br>
   a[i] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> d[a[i]];<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>[]
   mx <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span>[a.Length];<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> r <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> i <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   i &lt; a.Length; ++i)<br>
   {<br>
   <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">///求最大递增长度，这里的递增不一定连个数字连在一起，但是必须是只增加1的，</span>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">///比如:1,2,4,5,3的最大递增长度是3，因为1,2,...3是递增的</span>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> m <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> j <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   j &lt; i; ++j)<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">if</span> (a[j]
   == a[i] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">-</span> 1)<br>
   m <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> Math.Max(m,
   mx[j]);<br>
   mx[i] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> m <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span> 1;<br>
   r <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> Math.Max(r,
   mx[i]);<br>
   }<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">return</span> a.Length <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">-</span> r;<br>
   }<br>
   }<br>
   }</span>
</p>
<p>
   <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">2.LightSwitches<br>
   <a href="http://www.topcoder.com/stat?c=problem_statement&amp;pm=6407&amp;rd=9986">Problem
   Statement</a>
   <br>
   Solution:<br>
   </span><span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
</p>
<p>
   <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> System;<br>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">namespace</span> googlecodejam<br>
   {<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">public</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">class</span> LightSwitches<br>
   {<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">public</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">long</span> countPossibleConfigurations(<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">string</span>[]
   switches)<br>
   {<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> n <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> switches.Length;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> m <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> switches[0].Length;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">bool</span>[,]
   a <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">bool</span>[n,
   m];<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> i <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   i &lt; n; ++i)<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> j <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   j &lt; m; ++j)<br>
   a[i, j] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> switches[i][j]
   == 'Y';<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">bool</span>[]
   used <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">bool</span>[n];<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">long</span> res <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 1;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> i <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   i &lt; m; ++i)<br>
   {<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> j <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   j &lt; n; ++j)<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">if</span> (!used[j]
   &amp;&amp; a[j, i])<span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//如果switch没有use,并且这里有Y</span>
   <br>
   {<br>
   used[j] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">true</span>;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> k <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   k &lt; n; ++k)<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">if</span> (a[k,
   i] &amp;&amp; k !<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> j)<span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//其他行的这一列也有Y</span>
   <br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">for</span> (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span> l <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> 0;
   l &lt; m; ++l)<br>
   a[k, l] ^<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> a[j,
   l];<span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//把那一行的所有元素
   ^= 本行的所有元素</span>
   <br>
   res &lt;&lt;= 1;<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">break</span>;<br>
   }<br>
   }<br>
   <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">return</span> res;<br>
   }<br>
   <br>
   }<br>
   }</span>
</p>
<p>
   3.TourCounting<br>
   这个题是图论相关的，没有学过，代码都看不懂!_Q,等学会了再来分析好了。。。<br>
</p>
><img width="0" height="0" src="http://202.117.33.48/DasBlog/aggbug.ashx?id=49f830bb-5f7e-4bff-af50-1aee1c85368b" />
<br />
<hr />Ecogiser's Blog<img src ="http://www.cnblogs.com/ecogiser/aggbug/477619.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41918/" target="_blank">[新闻]数据库市场:微软和甲骨文快速进步 威胁IBM</a>]]></description></item><item><title>秦岭大熊猫保护区群 地图</title><link>http://www.cnblogs.com/ecogiser/archive/2006/06/07/477620.html</link><dc:creator>Binary Race</dc:creator><author>Binary Race</author><pubDate>Wed, 07 Jun 2006 10:34:00 GMT</pubDate><guid>http://www.cnblogs.com/ecogiser/archive/2006/06/07/477620.html</guid><wfw:comment>http://www.cnblogs.com/ecogiser/comments/477620.html</wfw:comment><comments>http://www.cnblogs.com/ecogiser/archive/2006/06/07/477620.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ecogiser/comments/commentRss/477620.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ecogiser/services/trackbacks/477620.html</trackback:ping><description><![CDATA[<p>
   <a href="http://202.117.33.48/panda/datamanager/map.htm">http://202.117.33.48/panda/datamanager/map.htm</a>
</p>
<img width="0" height="0" src="http://202.117.33.48/DasBlog/aggbug.ashx?id=e46e5d8e-a3f3-4586-bc96-f06c35173a8f" />
<br />
<hr />Ecogiser's Blog<img src ="http://www.cnblogs.com/ecogiser/aggbug/477620.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41917/" target="_blank">[新闻]深度分析：全球千亿美元市值IT企业7月榜单点评</a>]]></description></item><item><title>Try out Google Spreadsheets</title><link>http://www.cnblogs.com/ecogiser/archive/2006/06/07/477621.html</link><dc:creator>Binary Race</dc:creator><author>Binary Race</author><pubDate>Wed, 07 Jun 2006 06:27:00 GMT</pubDate><guid>http://www.cnblogs.com/ecogiser/archive/2006/06/07/477621.html</guid><wfw:comment>http://www.cnblogs.com/ecogiser/comments/477621.html</wfw:comment><comments>http://www.cnblogs.com/ecogiser/archive/2006/06/07/477621.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ecogiser/comments/commentRss/477621.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ecogiser/services/trackbacks/477621.html</trackback:ping><description><![CDATA[<p>
   <a href="http://www.google.com/googlespreadsheets/try_out.html">http://www.google.com/googlespreadsheets/try_out.html</a>
</p>
<p>
   不知道与传统的Excel有什么区别，似乎可以联机编辑之类的，期待中
</p>
<img src="http://202.117.33.48/DasBlog/content/binary/spreadsheets.gif" border=0><img width="0" height="0" src="http://202.117.33.48/DasBlog/aggbug.ashx?id=8042680d-d3a4-4f70-acf7-87f5584cd447" />
<br />
<hr />Ecogiser's Blog<img src ="http://www.cnblogs.com/ecogiser/aggbug/477621.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41917/" target="_blank">[新闻]深度分析：全球千亿美元市值IT企业7月榜单点评</a>]]></description></item><item><title>ESRI Shape File To Google Map</title><link>http://www.cnblogs.com/ecogiser/archive/2006/06/06/477623.html</link><dc:creator>Binary Race</dc:creator><author>Binary Race</author><pubDate>Tue, 06 Jun 2006 01:31:00 GMT</pubDate><guid>http://www.cnblogs.com/ecogiser/archive/2006/06/06/477623.html</guid><wfw:comment>http://www.cnblogs.com/ecogiser/comments/477623.html</wfw:comment><comments>http://www.cnblogs.com/ecogiser/archive/2006/06/06/477623.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ecogiser/comments/commentRss/477623.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ecogiser/services/trackbacks/477623.html</trackback:ping><description><![CDATA[<p>
   <a href="http://www.wildsoft.org/surveyarea/map/map.aspx">http://www.wildsoft.org/surveyarea/map/map.aspx</a>
</p>
<p>
   支持ESRI公司的Shape文件格式的地图到Google Map的转换，转了一个秦岭保护区的图
</p>
<p>
   <a href="http://202.117.33.48/lab">http://202.117.33.48/lab</a>
</p>
<img width="0" height="0" src="http://202.117.33.48/DasBlog/aggbug.ashx?id=e7817d79-07cb-4f5b-b566-8c55a7ff127c" />
<br />
<hr />Ecogiser's Blog<img src ="http://www.cnblogs.com/ecogiser/aggbug/477623.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41916/" target="_blank">[新闻]中移动上半年净利549亿元 每天盈利3亿</a>]]></description></item></channel></rss>