<?xml version="1.0" encoding="UTF-8" ?>
  <rss version="2.0">
    <channel>

<title>Princetonboy</title>
      <link>http://princetonboy.ycool.com/</link>
      <description><![CDATA[]]></description>
      <pubDate>Fri, 03 Jul 2009 15:07:31 GMT</pubDate>
      <lastBuildDate>Fri, 03 Jul 2009 15:07:31 GMT</lastBuildDate>
      <image>
        <url>http://sta.yculblog.com/images/logo/general-88x31.gif</url>
        <title>Princetonboy</title>
        <link>http://princetonboy.ycool.com/</link>
      </image>
<item>
        <title>生活的忠告</title>
        <link>http://princetonboy.ycool.com/post.3430761.html</link>
        <description><![CDATA[<div style="LINE-HEIGHT: 150%"><strong><span style="COLOR: red">PS:</span></strong><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">一个朋友发给我的网页文字</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">,</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">其实很早以前看过</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">,</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">今天同样认真的读了一遍</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">,</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">且不说是否迷信</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">,</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">是否读了之后会有好运</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">,</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">但是其中的话却真的有深刻的道理</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">. </span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">生活</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">,</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">我们该以一个什么样的态度去面对呢</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">? </span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">这是一个值得用一生去思考的问题</span><span style="FONT-SIZE: 9pt; COLOR: red; LINE-HEIGHT: 150%">.</span></div>
<div style="LINE-HEIGHT: 150%">&nbsp;</div>
<div style="LINE-HEIGHT: 150%" align="center"><span style="COLOR: blue">印度的密教经典</span><span style="COLOR: blue">－－</span><span style="COLOR: blue">古老的祝福</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">不管你是否迷信</span><span style="COLOR: blue">,</span><span style="COLOR: blue">这个网页都应该读一下</span><span style="COLOR: blue">,</span><span style="COLOR: blue">好吗</span><span style="COLOR: blue">?</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">这是密教图腾上的文字</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">读了这封信后的四天内</span><span style="COLOR: blue">,</span><span style="COLOR: blue">你会有好运来临</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">把这封信邮寄给几个你想要祝福的人</span><span style="COLOR: blue">. </span><span style="COLOR: blue">有许许多多人</span><span style="COLOR: blue">,</span><span style="COLOR: blue">也许你已经淡忘了</span><span style="COLOR: blue">,</span><span style="COLOR: blue">如果仍然在你的心里</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他们也一样会得到幸运</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">我不会给你钱</span><span style="COLOR: blue">,</span><span style="COLOR: blue">因为我没有</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%">&nbsp;</div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">给你生活的忠告</span><span style="COLOR: blue">:</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">多吃些粗粮</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">给别人比他们自己期许的更多</span><span style="COLOR: blue">,</span><span style="COLOR: blue">并且用心去做</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">熟记你喜欢的诗歌</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">不要轻信你听到的每件事</span><span style="COLOR: blue">,</span><span style="COLOR: blue">不要花光你的所有</span><span style="COLOR: blue">,</span><span style="COLOR: blue">不要想睡多久就睡多久</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">无论何时说</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">我爱你</span><span style="COLOR: blue">&rdquo;,</span><span style="COLOR: blue">请真心实意</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">无论何时说</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">对不起</span><span style="COLOR: blue">&rdquo;,</span><span style="COLOR: blue">请看着对方的眼睛</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">相信一见钟情</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">永远不要忽视别人的梦想</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">深情热烈地爱</span><span style="COLOR: blue">,</span><span style="COLOR: blue">也许你会受伤</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但这是使人生完整的唯一方法</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">用一种明确的方法解决争议</span><span style="COLOR: blue">,</span><span style="COLOR: blue">不要冒犯</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">永远不要以貌取人</span><span style="COLOR: blue">. </span><span style="COLOR: blue">慢慢地说</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但要迅速地想</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">当别人问你不想回答的问题时</span><span style="COLOR: blue">,</span><span style="COLOR: blue">笑着说</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">你为什么想知道</span><span style="COLOR: blue">?&rdquo;.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">记住那些敢于承担最大风险的人才能得到最深的爱和最大的成就</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">给妈妈打电话</span><span style="COLOR: blue">. </span><span style="COLOR: blue">如果不行</span><span style="COLOR: blue">,</span><span style="COLOR: blue">至少在心里想着她</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">当别人打喷嚏时</span><span style="COLOR: blue">,</span><span style="COLOR: blue">说一声</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">菩萨保佑</span><span style="COLOR: blue">&rdquo;.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">如果你失败了</span><span style="COLOR: blue">,</span><span style="COLOR: blue">千万不要忘记汲取教训</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">记住三个</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">尊</span><span style="COLOR: blue">&rdquo;: </span><span style="COLOR: blue">尊重你自己</span><span style="COLOR: blue">; </span><span style="COLOR: blue">尊重别人</span><span style="COLOR: blue">; </span><span style="COLOR: blue">保持尊严</span><span style="COLOR: blue">,</span><span style="COLOR: blue">对自己的行为负责</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">不要让小小的争端损毁了一段伟大的友谊</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">无论何时你发现自己做错了</span><span style="COLOR: blue">,</span><span style="COLOR: blue">竭尽所能去弥补</span><span style="COLOR: blue">. </span><span style="COLOR: blue">动作要快</span><span style="COLOR: blue">!</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">无论什么时候打电话</span><span style="COLOR: blue">,</span><span style="COLOR: blue">摘起话筒的时候请微笑</span><span style="COLOR: blue">,</span><span style="COLOR: blue">因为对方能感觉到</span><span style="COLOR: blue">!</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">找一个你爱聊的人结婚</span><span style="COLOR: blue">,</span><span style="COLOR: blue">因为当年龄大了以后</span><span style="COLOR: blue">,</span><span style="COLOR: blue">你会发觉喜欢聊天是一个人最大的优点</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">找点时间</span><span style="COLOR: blue">,</span><span style="COLOR: blue">单独呆会儿</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">欣然接收改变</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但是不要摒弃你的个人理念</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">记住</span><span style="COLOR: blue">,</span><span style="COLOR: blue">沉默是金</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">多看点书</span><span style="COLOR: blue">,</span><span style="COLOR: blue">少看点电视</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">过一种高尚而诚实的生活</span><span style="COLOR: blue">. </span><span style="COLOR: blue">当你年老时回想起过去</span><span style="COLOR: blue">,</span><span style="COLOR: blue">你就能再一次享受人生</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">相信上帝</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但是别忘了锁门</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">家庭的融洽氛围是难能可贵的</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">尽你的全力让家平顺和谐</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">当你和你亲近的人吵嘴的时候</span><span style="COLOR: blue">,</span><span style="COLOR: blue">试着就事论事</span><span style="COLOR: blue">,</span><span style="COLOR: blue">不要扯出那些陈芝麻</span><span style="COLOR: blue">,</span><span style="COLOR: blue">烂谷子的事</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">不要摆脱不了昨天</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">多注意言下之意</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">和别人分享你的知识</span><span style="COLOR: blue">,</span><span style="COLOR: blue">那才是永恒之道</span><span style="COLOR: blue">!</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">善待我们的地球</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">不要愚弄自然母亲。</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">忙自己该做的事</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">不要相信接吻时从不闭眼的伴侣</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">每年至少去一个你从没去过的地方</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">如果你赚了很多钱</span><span style="COLOR: blue">,</span><span style="COLOR: blue">在活着的时候多行善事</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这是你能得到的最好回报</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">记住有时候</span><span style="COLOR: blue">,</span><span style="COLOR: blue">不是最好的收获也是一种好运</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">深刻理解所有的规则</span><span style="COLOR: blue">,</span><span style="COLOR: blue">合理地更新他们</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">记住</span><span style="COLOR: blue">: </span><span style="COLOR: blue">最好的关系存在于对别人的爱胜于对别人的索求之上</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">回头看看你发誓取得的目标</span><span style="COLOR: blue">,</span><span style="COLOR: blue">然后评判你到底有多成功</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%"><span style="COLOR: blue">无论是烹调还是爱情</span><span style="COLOR: blue">,</span><span style="COLOR: blue">都用百分之百的负责态度对待</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但是不要期求太多的回报</span><span style="COLOR: blue">.</span></div>
<div style="LINE-HEIGHT: 150%">&nbsp;</div>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3430761.html</guid>
        <pubDate>Fri, 03 Jul 2009 14:07:26 GMT</pubDate>
<category>祝福</category>

        <category>忠告</category>
      </item>

      <item>
        <title>重归故里</title>
        <link>http://princetonboy.ycool.com/post.3397893.html</link>
        <description><![CDATA[<p align="center"><img height="374" alt="TopCoder" width="564" border="0" src="http://node0.foto.ycstatic.com/200906/26/7/27909431.jpg" /><br />
<br />
<img style="WIDTH: 566px; HEIGHT: 363px" height="363" alt="" width="572" border="0" src="http://node0.foto.ycstatic.com/200906/26/8/27909432.jpg" /></p>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3397893.html</guid>
        <pubDate>Fri, 26 Jun 2009 15:06:05 GMT</pubDate>
<category>topcoder</category>

        <category>acm/icpc</category>
      </item>

      <item>
        <title>有几个人可以像林志颖这样</title>
        <link>http://princetonboy.ycool.com/post.3163929.html</link>
        <description><![CDATA[<div><span style="FONT-SIZE: 9pt; COLOR: blue">10</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">遥控车比赛全台湾亚军</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">对记者说自己的梦想是做一名赛车手</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">15</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">依靠打工买下平生第一辆车</span><span style="FONT-SIZE: 9pt; COLOR: blue">(</span><span style="FONT-SIZE: 9pt; COLOR: blue">一辆</span><span style="FONT-SIZE: 9pt; COLOR: blue">50CC</span><span style="FONT-SIZE: 9pt; COLOR: blue">摩托车</span><span style="FONT-SIZE: 9pt; COLOR: blue">),</span><span style="FONT-SIZE: 9pt; COLOR: blue">并自己动手改装</span><span style="FONT-SIZE: 9pt; COLOR: blue">,</span><span style="FONT-SIZE: 9pt; COLOR: blue">使之能发出</span><span style="FONT-SIZE: 9pt; COLOR: blue">8</span><span style="FONT-SIZE: 9pt; COLOR: blue">种声音</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">15</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">尚未出道的林志颖因完美的外形和健康阳光的气质被广告商拉去拍了三个大广告</span><span style="FONT-SIZE: 9pt; COLOR: blue">---</span><span style="FONT-SIZE: 9pt; COLOR: blue">白兰洗面乳、宏基电脑、金车麦根沙士</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">16</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">因演出学校舞台剧</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">最后</span><span style="FONT-SIZE: 9pt; COLOR: blue">5</span><span style="FONT-SIZE: 9pt; COLOR: blue">分钟出场</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">被飞碟公司星探发现</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">正式签约飞碟唱片公司</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">17</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">发第一张唱片</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">正式出道</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">一年不到</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">红遍东南亚以及整个华语世界</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">绰号</span><span style="FONT-SIZE: 9pt; COLOR: blue">&ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">亚洲小旋风</span><span style="FONT-SIZE: 9pt; COLOR: blue">&rdquo;, </span><span style="FONT-SIZE: 9pt; COLOR: blue">被媒体称为娱乐圈</span><span style="FONT-SIZE: 9pt; COLOR: blue">&ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">最神的神话</span><span style="FONT-SIZE: 9pt; COLOR: blue">&rdquo;.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">18</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">成为第一个完全以国语歌曲演唱入主红磡体育馆歌手及红磡开唱最年轻歌手</span><span style="FONT-SIZE: 9pt; COLOR: blue">(</span><span style="FONT-SIZE: 9pt; COLOR: blue">该记录至今仍然由林志颖保持</span><span style="FONT-SIZE: 9pt; COLOR: blue">). </span><span style="FONT-SIZE: 9pt; COLOR: blue">第一次来访香港的林志颖</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">使得香港启德机场经历了十年来一次难得的轰动经验</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">一种外来的震撼</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">从没这样的颠倒过</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">被香港媒体称为</span><span style="FONT-SIZE: 9pt; COLOR: blue">&ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">过江龙</span><span style="FONT-SIZE: 9pt; COLOR: blue">&rdquo;.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">18</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">举办世界巡回演唱会的最年轻歌手记录保持者</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">18</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">拥有第一辆宝马跑车</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">18</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">成立自己的摄影工作室</span><span style="FONT-SIZE: 9pt; COLOR: blue">(</span><span style="FONT-SIZE: 9pt; COLOR: blue">分店一度开到六七家</span><span style="FONT-SIZE: 9pt; COLOR: blue">,</span><span style="FONT-SIZE: 9pt; COLOR: blue">月盈额</span><span style="FONT-SIZE: 9pt; COLOR: blue">200</span><span style="FONT-SIZE: 9pt; COLOR: blue">万</span><span style="FONT-SIZE: 9pt; COLOR: blue">).</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">20</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ 7</span><span style="FONT-SIZE: 9pt; COLOR: blue">张唱片销量全球突破</span><span style="FONT-SIZE: 9pt; COLOR: blue">1000</span><span style="FONT-SIZE: 9pt; COLOR: blue">万张</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">20</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">抛下巨星光环</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">毅然入伍当兵</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">22</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">以跳箱、射击、投弹、匍匐等等几乎所有项目接近满分</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">在役期间荣获四次荣誉假</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">并获得</span><span style="FONT-SIZE: 9pt; COLOR: blue">&ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">总统奖</span><span style="FONT-SIZE: 9pt; COLOR: blue">&rdquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">嘉许的成绩退伍</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">22</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">接受泰国国王莆眉篷的邀请担任莆眉篷</span><span style="FONT-SIZE: 9pt; COLOR: blue">70</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁大寿生日会演唱压轴嘉宾</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">并接受泰国王后和公主的接见</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">公主一见钟情</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">差点成为泰国驸马</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">22</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">开始投资股票</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">23</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">拥有第一辆法拉利</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">用自己的红色法拉利战车</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">第一次赛车比赛拿到季军奖杯</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">23</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">巨星身价签约香港百代</span><span style="FONT-SIZE: 9pt; COLOR: blue">EMI</span><span style="FONT-SIZE: 9pt; COLOR: blue">唱片公司</span><span style="FONT-SIZE: 9pt; COLOR: blue">.(</span><span style="FONT-SIZE: 9pt; COLOR: blue">报纸写的是两年三千万港币</span><span style="FONT-SIZE: 9pt; COLOR: blue">)</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">24</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">赛车出车祸</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">右脚掌断了三根骨头</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">打了四根钢钉固定</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">24</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">参加世界国际</span><span style="FONT-SIZE: 9pt; COLOR: blue">A</span><span style="FONT-SIZE: 9pt; COLOR: blue">级越野赛</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">成台湾第一个参加国际顶级赛事的车手</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">24</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">以一百分的成绩取得专业救护资格证</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">成为台湾第一批</span><span style="FONT-SIZE: 9pt; COLOR: blue">EMT(Emergency Medical Technician,</span><span style="FONT-SIZE: 9pt; COLOR: blue">即紧急救护技术员</span><span style="FONT-SIZE: 9pt; COLOR: blue">)</span><span style="FONT-SIZE: 9pt; COLOR: blue">之一</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">25</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">拍摄第一部电视剧《<a href="http://fifid.com/search/%E7%BB%9D%E4%BB%A3%E5%8F%8C%E9%AA%84?src=yb_qsal&utm_source=yb_qsal&utm_medium=link&utm_content=rsspost" target="_blank">绝代双骄</a>》</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">泰国收视第一</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">红遍两岸三地</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">再次成为台湾身价片酬最高艺人</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">25</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">成立自己的第一支赛车队</span><span style="FONT-SIZE: 9pt; COLOR: blue">ESSO JIMMY RACING TEAM.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">25</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">一年内四次刷新台湾龙潭</span><span style="FONT-SIZE: 9pt; COLOR: blue">BMW M3</span><span style="FONT-SIZE: 9pt; COLOR: blue">最快赛车单圈记录</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">25</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">潜水执照</span><span style="FONT-SIZE: 9pt; COLOR: blue">. (</span><span style="FONT-SIZE: 9pt; COLOR: blue">注</span><span style="FONT-SIZE: 9pt; COLOR: blue">: </span><span style="FONT-SIZE: 9pt; COLOR: blue">是这一年在新闻中提到潜水执照</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">在垦丁海域潜水、飙水上摩托车、玩机械帆船等水上活动</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">其实是林志颖学生时代便热衷的</span><span style="FONT-SIZE: 9pt; COLOR: blue">.)</span></div>
<div>&nbsp;</div>
<div style="MARGIN: 0cm 0cm 0pt 4.5pt; TEXT-INDENT: -4.5pt"><span style="FONT-SIZE: 9pt; COLOR: blue">26</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">出演电影《<a href="http://fifid.com/search/%E7%BA%A2%E5%AD%97?src=yb_qsal&utm_source=yb_qsal&utm_medium=link&utm_content=rsspost" target="_blank">红字</a>》</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">拿到亚太影展最佳男演员特别奖</span><span style="FONT-SIZE: 9pt; COLOR: blue">,</span><span style="FONT-SIZE: 9pt; COLOR: blue">《红字》一剧拿下当年泰国年度票房第一</span><span style="FONT-SIZE: 9pt; COLOR: blue">,</span><span style="FONT-SIZE: 9pt; COLOR: blue">也是泰国历史上总票房排第二的电影</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">26</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">在珠海赛车场拿到赛车生涯第一个冠军</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div style="MARGIN: 0cm 0cm 0pt 4.5pt; TEXT-INDENT: -4.5pt"><span style="FONT-SIZE: 9pt; COLOR: blue">26</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">成立自己的科技公司</span><span style="FONT-SIZE: 9pt; COLOR: blue">. (</span><span style="FONT-SIZE: 9pt; COLOR: blue">林志颖之后很长一段时间内一直亲历亲为</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">与朋友一起将公司发展壮大</span><span style="FONT-SIZE: 9pt; COLOR: blue">,</span><span style="FONT-SIZE: 9pt; COLOR: blue">甚至在内地拍戏时还坚持每天开远程会议</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">处理台北公司事宜</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">公司设计软件接冾的对象包括军方、银行等</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">是全台湾唯一一家做该方面项目的公司</span><span style="FONT-SIZE: 9pt; COLOR: blue">.)</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">27</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">担任美国国际反毒大使</span><span style="FONT-SIZE: 9pt; COLOR: blue">(</span><span style="FONT-SIZE: 9pt; COLOR: blue">亚裔艺人第一人</span><span style="FONT-SIZE: 9pt; COLOR: blue">).</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">27</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">赛车达到颠峰状态</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">拿到</span><span style="FONT-SIZE: 9pt; COLOR: blue">9</span><span style="FONT-SIZE: 9pt; COLOR: blue">座职业车赛奖杯</span><span style="FONT-SIZE: 9pt; COLOR: blue">, 7</span><span style="FONT-SIZE: 9pt; COLOR: blue">个冠军奖杯</span><span style="FONT-SIZE: 9pt; COLOR: blue">, 2</span><span style="FONT-SIZE: 9pt; COLOR: blue">座亚军</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">并成为台湾年度冠军车手</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">27</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">成为台湾第一位授薪职业赛车手</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">28</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">美国总统布什授予白宫荣誉奖章</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">29</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">获得国际杰出青年奖</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">是首位华人、全球演艺界继汤姆克鲁斯后第二位艺人获此殊荣</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">并于美国领取杰出华人奖</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">旧金山定当年</span><span style="FONT-SIZE: 9pt; COLOR: blue">10</span><span style="FONT-SIZE: 9pt; COLOR: blue">月</span><span style="FONT-SIZE: 9pt; COLOR: blue">17</span><span style="FONT-SIZE: 9pt; COLOR: blue">日</span><span style="FONT-SIZE: 9pt; COLOR: blue">为</span><span style="FONT-SIZE: 9pt; COLOR: blue">&ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">林志颖日</span><span style="FONT-SIZE: 9pt; COLOR: blue">&rdquo;, </span><span style="FONT-SIZE: 9pt; COLOR: blue">授予</span><span style="FONT-SIZE: 9pt; COLOR: blue">&ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">美国荣誉公民</span><span style="FONT-SIZE: 9pt; COLOR: blue">&rdquo;.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">29</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">拍摄《<a href="http://fifid.com/search/%E5%A4%A9%E9%BE%99%E5%85%AB%E9%83%A8?src=yb_qsal&utm_source=yb_qsal&utm_medium=link&utm_content=rsspost" target="_blank">天龙八部</a>》</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">为</span><span style="FONT-SIZE: 9pt; COLOR: blue">2003</span><span style="FONT-SIZE: 9pt; COLOR: blue">年百度年度搜索第一电视剧</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">台湾收视最高武侠剧</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">29</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">正式投身中国职业汽车拉力赛</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">加盟上海佳通轮胎车队</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">29</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">搬入装修半年多的居室</span><span style="FONT-SIZE: 9pt; COLOR: blue">. (</span><span style="FONT-SIZE: 9pt; COLOR: blue">林志颖的家堪一座科技中心</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">朋友戏称林志颖过的是</span><span style="FONT-SIZE: 9pt; COLOR: blue">007</span><span style="FONT-SIZE: 9pt; COLOR: blue">的生活</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">家整的像骇客帝国一样</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">全是机械化的东西</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">说不定从哪里伸出什么东西</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">不仅如此</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">他家里的电子设备都是和他的手机相连接的</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">即便身在美国、内地</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">林志颖也可以用手机远程控制家中上百样设备</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">比如在回家的路上</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">他就可以设定家里的温度、湿度</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">可以放水温水这样一回家就能洗澡</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">可以在内地招待台北家里的客人等等</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">该系统是由他自己的科技公司开发的</span><span style="FONT-SIZE: 9pt; COLOR: blue">.)</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">30</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">加盟云南红河拉力车队</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">获得中国拉力赛年度车手第</span><span style="FONT-SIZE: 9pt; COLOR: blue">8</span><span style="FONT-SIZE: 9pt; COLOR: blue">名</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">亚洲雷诺方程式获得第五</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">30</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">于珠海举办第一届</span><span style="FONT-SIZE: 9pt; COLOR: blue">&ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">林志颖杯</span><span style="FONT-SIZE: 9pt; COLOR: blue">&ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">交通安全明星邀请赛</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">与好友陈维良先生合作成立</span><span style="FONT-SIZE: 9pt; COLOR: blue">&ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">珠海平坐赛车咨询公司</span><span style="FONT-SIZE: 9pt; COLOR: blue">&rdquo;.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">30</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">拍《<a href="http://fifid.com/search/%E4%B9%A6%E5%89%91%E6%83%85%E4%BE%A0%E6%9F%B3%E4%B8%89%E5%8F%98?src=yb_qsal&utm_source=yb_qsal&utm_medium=link&utm_content=rsspost" target="_blank">书剑情侠柳三变</a>》时发生意外</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">由于吊索的扣环插入</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">致使林志颖脊椎旁的一块小骨头骨折</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">台湾医生一致建议林志颖至少要休息三个月</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">但临时换演员</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">意味着剧组要遭受巨大的损失</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">林志颖不顾家人反对</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">在一个疗程后</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">带着强力镇痛药回到了剧组</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">不仅如此</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">由于治疗耽误了十二天的时间</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">此后的拍摄林志颖甚至每天工作十五六个小时为剧组弥补损失</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">31</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">组建自己的第一支拉力车队</span><span style="FONT-SIZE: 9pt; COLOR: blue">&ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">林志颖车队</span><span style="FONT-SIZE: 9pt; COLOR: blue">&rdquo;, </span><span style="FONT-SIZE: 9pt; COLOR: blue">聘请曾经世界排名第三的英国著名选手小麦克雷为其车队效力</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">31</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">改装成了台湾第一把绿色瞄准器的</span><span style="FONT-SIZE: 9pt; COLOR: blue">BB</span><span style="FONT-SIZE: 9pt; COLOR: blue">枪</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">半年后台湾的公司相继效仿生产</span><span style="FONT-SIZE: 9pt; COLOR: blue">. (</span><span style="FONT-SIZE: 9pt; COLOR: blue">此事在</span><span style="FONT-SIZE: 9pt; COLOR: blue">31</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁这一年在节目中由朋友爆料</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">具体时间不详</span><span style="FONT-SIZE: 9pt; COLOR: blue">.)</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">32</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ &ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">林志颖车队</span><span style="FONT-SIZE: 9pt; COLOR: blue">&rdquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">获得中国拉力赛年度季军车队</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">32</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">成立</span><span style="FONT-SIZE: 9pt; COLOR: blue">&ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">梦飨家</span><span style="FONT-SIZE: 9pt; COLOR: blue">&rdquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">餐厅</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">32</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">出演第一部时装偶像剧《<a href="http://fifid.com/search/%E6%94%BE%E7%BE%8A%E7%9A%84%E6%98%9F%E6%98%9F?src=yb_qsal&utm_source=yb_qsal&utm_medium=link&utm_content=rsspost" target="_blank">放羊的星星</a>》</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">为</span><span style="FONT-SIZE: 9pt; COLOR: blue">2007</span><span style="FONT-SIZE: 9pt; COLOR: blue">年百度年度搜索第一电视剧</span><span style="FONT-SIZE: 9pt; COLOR: blue">, 2007</span><span style="FONT-SIZE: 9pt; COLOR: blue">年港台最受欢迎电视剧</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">及</span><span style="FONT-SIZE: 9pt; COLOR: blue">2007</span><span style="FONT-SIZE: 9pt; COLOR: blue">年台湾最高收视偶像剧</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">并入围</span><span style="FONT-SIZE: 9pt; COLOR: blue">2008</span><span style="FONT-SIZE: 9pt; COLOR: blue">年韩国首尔电视节最佳长篇电视剧</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">32</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">受邀骑哈雷重型机车率领</span><span style="FONT-SIZE: 9pt; COLOR: blue">600</span><span style="FONT-SIZE: 9pt; COLOR: blue">多辆大排量国内外名牌摩托车和近千名国内摩托车迷于广东江门巡游</span><span style="FONT-SIZE: 9pt; COLOR: blue">, 600</span><span style="FONT-SIZE: 9pt; COLOR: blue">辆摩托车组成奥运五环</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">支持北京奥运会</span><span style="FONT-SIZE: 9pt; COLOR: blue">. </span><span style="FONT-SIZE: 9pt; COLOR: blue">该活动经公证创北京奥运组合图案吉尼斯之最</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">32</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">担任国际马拉松大使</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">32</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">考取游艇执照</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">32</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">意大利车商法拉利大手笔包下上海</span><span style="FONT-SIZE: 9pt; COLOR: blue">F1</span><span style="FONT-SIZE: 9pt; COLOR: blue">赛车场</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">提供上亿台币名车</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">邀请林志颖担任艺人专业驾驶培训课程教练</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">33</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ 2008</span><span style="FONT-SIZE: 9pt; COLOR: blue">年新飞泛珠三角超级赛车节春季赛第一回合冠军、第二回合亚军</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">夏季赛第一回合冠军、第二回合冠军</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">33</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ </span><span style="FONT-SIZE: 9pt; COLOR: blue">四川汶川地震</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">捐款</span><span style="FONT-SIZE: 9pt; COLOR: blue">100</span><span style="FONT-SIZE: 9pt; COLOR: blue">万人民币</span><span style="FONT-SIZE: 9pt; COLOR: blue">(</span><span style="FONT-SIZE: 9pt; COLOR: blue">台湾捐款最多艺人</span><span style="FONT-SIZE: 9pt; COLOR: blue">), </span><span style="FONT-SIZE: 9pt; COLOR: blue">亲自赴灾区当义工</span><span style="FONT-SIZE: 9pt; COLOR: blue">(</span><span style="FONT-SIZE: 9pt; COLOR: blue">台湾第一位赴灾区艺人</span><span style="FONT-SIZE: 9pt; COLOR: blue">), </span><span style="FONT-SIZE: 9pt; COLOR: blue">认养两名地震孤儿</span><span style="FONT-SIZE: 9pt; COLOR: blue">, 08</span><span style="FONT-SIZE: 9pt; COLOR: blue">年</span><span style="FONT-SIZE: 9pt; COLOR: blue">6</span><span style="FONT-SIZE: 9pt; COLOR: blue">月珠海赛事中将试驾所得的钱款全部捐献给赈灾区</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">并捐出冠军奖杯义卖</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">34</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ &ldquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">挡不住的林志颖</span><span style="FONT-SIZE: 9pt; COLOR: blue">&rdquo;</span><span style="FONT-SIZE: 9pt; COLOR: blue">上海演唱会</span><span style="FONT-SIZE: 9pt; COLOR: blue">, 2008<span>年</span>10<span>月</span>17<span>日</span> 19:30(P.M)</span><span style="FONT-SIZE: 9pt; COLOR: blue">上海虹口足球场</span><span style="FONT-SIZE: 9pt; COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt; COLOR: blue">34</span><span style="FONT-SIZE: 9pt; COLOR: blue">岁</span><span style="FONT-SIZE: 9pt; COLOR: blue"> ------ 2008<span><span>年</span>10<span>月</span>26<span>日</span>在中国深圳南山后海F1</span></span><span style="FONT-SIZE: 9pt; COLOR: blue">赛场举行加盟中国天荣队仪式</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">林志颖正式成为中国队后备队员</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">该队是世界</span><span style="FONT-SIZE: 9pt; COLOR: blue">F1</span><span style="FONT-SIZE: 9pt; COLOR: blue">赛场</span><span style="FONT-SIZE: 9pt; COLOR: blue">(F1</span><span style="FONT-SIZE: 9pt; COLOR: blue">赛车、</span><span style="FONT-SIZE: 9pt; COLOR: blue">F1</span><span style="FONT-SIZE: 9pt; COLOR: blue">摩托艇</span><span style="FONT-SIZE: 9pt; COLOR: blue">)</span><span style="FONT-SIZE: 9pt; COLOR: blue">上唯一的中国队</span><span style="FONT-SIZE: 9pt; COLOR: blue">. (</span><span style="FONT-SIZE: 9pt; COLOR: blue">演艺圈里首位参与此项殊荣的艺人</span><span style="FONT-SIZE: 9pt; COLOR: blue">, </span><span style="FONT-SIZE: 9pt; COLOR: blue">也是香港、台湾地区的首位华人选手</span><span style="FONT-SIZE: 9pt; COLOR: blue">)(</span><span style="FONT-SIZE: 9pt; COLOR: blue">中国队现计划安排林志颖进行集训和参加</span><span style="FONT-SIZE: 9pt; COLOR: blue">F2</span><span style="FONT-SIZE: 9pt; COLOR: blue">摩托艇世界锦标赛</span><span style="FONT-SIZE: 9pt; COLOR: blue">).</span></div>
<div>&nbsp;</div>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3163929.html</guid>
        <pubDate>Wed, 25 Feb 2009 08:02:34 GMT</pubDate>
<category>林志颖</category>

        <category>人生历程</category>
      </item>

      <item>
        <title>谷歌李开复: 我的传奇人生源于十句箴言</title>
        <link>http://princetonboy.ycool.com/post.3143504.html</link>
        <description><![CDATA[<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">一个成功的人如何定义成功</span><span style="COLOR: blue">? </span><span style="COLOR: blue">一个成功的人如何从成功中获得启发</span><span style="COLOR: blue">? </span><span style="COLOR: blue">这个命题无疑会让许多人充满了悬念与期待</span><span style="COLOR: blue">. 2008<span>年</span>11<span>月</span>30<span>日下午</span>, </span><span style="COLOR: blue">北京青年报大厦的</span><span style="COLOR: blue">20</span><span style="COLOR: blue">层大会议室迎来了北青教育大讲堂活动开办以来最爆满的盛况</span><span style="COLOR: blue">, </span><span style="COLOR: blue">谷歌全球副总裁、大中华区总裁李开复的到来</span><span style="COLOR: blue">, </span><span style="COLOR: blue">让许多人对于成功的定义有了崭新的认识</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">对于成功</span><span style="COLOR: blue">, </span><span style="COLOR: blue">不仅仅是对名利的追逐</span><span style="COLOR: blue">, </span><span style="COLOR: blue">不应该完全用世俗的价值观去衡量成功与否</span><span style="COLOR: blue">, </span><span style="COLOR: blue">而是实现自己的价值</span><span style="COLOR: blue">, </span><span style="COLOR: blue">关爱自己身边的人</span><span style="COLOR: blue">, </span><span style="COLOR: blue">给这个世界带来更多的影响力</span><span style="COLOR: blue">, </span><span style="COLOR: blue">用自己的力量去感染周围的磁场</span><span style="COLOR: blue">. </span><span style="COLOR: blue">当你某一天逝去的时候</span><span style="COLOR: blue">, </span><span style="COLOR: blue">你的墓志铭上应该撰写的是对你最公平的评价</span><span style="COLOR: blue">. </span><span style="COLOR: blue">成功的定义应该是多元化的</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">在这个下午</span><span style="COLOR: blue">, </span><span style="COLOR: blue">谷歌大中华区总裁李开复用平实而不失幽默的语言</span><span style="COLOR: blue">, </span><span style="COLOR: blue">讲述了自己成长中的很多故事</span><span style="COLOR: blue">. </span><span style="COLOR: blue">和许多人的成长经历相似</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他的成长中也有儿时的淘气顽皮</span><span style="COLOR: blue">, </span><span style="COLOR: blue">学生时代的疑问与困惑</span><span style="COLOR: blue">, </span><span style="COLOR: blue">有获得成功时的泪水与喜悦</span><span style="COLOR: blue">, </span><span style="COLOR: blue">也有经历困难与挫折时的蹉跎与彷徨</span><span style="COLOR: blue">. </span><span style="COLOR: blue">甚至有经历人生最低潮时期的痛苦与煎熬</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是与众不同的是</span><span style="COLOR: blue">, </span><span style="COLOR: blue">李开复在成功中收获了经验</span><span style="COLOR: blue">, </span><span style="COLOR: blue">在失败中得到了成长</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他把富有传奇的人生经历浓缩成为十句具有启发性的箴言</span><span style="COLOR: blue">, </span><span style="COLOR: blue">在如同与你交谈般的娓娓道来中</span><span style="COLOR: blue">, </span><span style="COLOR: blue">将这种宝贵的人生经验像冬日暖阳一样洒满了整个房间</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: red">●</span><span style="COLOR: red">成功箴言之一</span><span style="COLOR: red">: </span><span style="COLOR: red">自信不失谦虚</span><span style="COLOR: red">谦虚不失自信</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">李开复</span><span style="COLOR: blue">1961</span><span style="COLOR: blue">年出生于台湾</span><span style="COLOR: blue">, </span><span style="COLOR: blue">母亲在</span><span style="COLOR: blue">43</span><span style="COLOR: blue">岁高龄时生下他前</span><span style="COLOR: blue">, </span><span style="COLOR: blue">被医生数次劝阻</span><span style="COLOR: blue">. </span><span style="COLOR: blue">因为医生透露</span><span style="COLOR: blue">, </span><span style="COLOR: blue">如此高龄的产妇很可能生下白痴</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是母亲不顾一切劝阻生下了这个幺儿</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这个幺儿在母亲的极度宠爱下自由自在地成长着</span><span style="COLOR: blue">, </span><span style="COLOR: blue">喜欢做很多恶作剧</span><span style="COLOR: blue">. </span><span style="COLOR: blue">把家里所有的钟表调慢一小时以便晚上床睡觉</span><span style="COLOR: blue">. </span><span style="COLOR: blue">把邻居池塘里的水放干以证实邻居池塘里并没有</span><span style="COLOR: blue">100</span><span style="COLOR: blue">条鱼</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这一切母亲都只是报以宽容的一笑</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是母亲不允许孩子傲慢和目中无人</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">当</span><span style="COLOR: blue">5</span><span style="COLOR: blue">岁的李开复得意洋洋地对邻居阿姨表示</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">上小学以后就没有见过</span><span style="COLOR: blue">99</span><span style="COLOR: blue">分</span><span style="COLOR: blue">&rdquo;</span><span style="COLOR: blue">后</span><span style="COLOR: blue">. </span><span style="COLOR: blue">母亲不允许这样的狂放存在于孩子身上</span><span style="COLOR: blue">, </span><span style="COLOR: blue">有史以来第一次打了开复</span><span style="COLOR: blue">. </span><span style="COLOR: blue">母亲告诉他</span><span style="COLOR: blue">, &ldquo;</span><span style="COLOR: blue">不只要好好学习</span><span style="COLOR: blue">, </span><span style="COLOR: blue">还要改掉骄傲的毛病</span><span style="COLOR: blue">. </span><span style="COLOR: blue">自夸是要不得的</span><span style="COLOR: blue">. </span><span style="COLOR: blue">谦虚是中国人的美德</span><span style="COLOR: blue">.&rdquo; </span><span style="COLOR: blue">母亲总是不失时机地把做人的道理告诉开复</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这一次强烈的记忆</span><span style="COLOR: blue">, </span><span style="COLOR: blue">使得开复懂得如何在谦虚和自信中保持平衡</span><span style="COLOR: blue">, </span><span style="COLOR: blue">而不会在自卑或自负中跌倒</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: red">●</span><span style="COLOR: red">成功箴言之二</span><span style="COLOR: red">: </span><span style="COLOR: red">天赋就是兴趣</span><span style="COLOR: red">兴趣就是天赋</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">李开复</span><span style="COLOR: blue">11</span><span style="COLOR: blue">岁留学美国之后</span><span style="COLOR: blue">, </span><span style="COLOR: blue">一直在美国成长</span><span style="COLOR: blue">. 1972</span><span style="COLOR: blue">年</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他进入了美国哥伦比亚大学学习</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">政治科学</span><span style="COLOR: blue">&rdquo;</span><span style="COLOR: blue">专业</span><span style="COLOR: blue">. </span><span style="COLOR: blue">然而两年的学习让他知道自己的兴趣并非在政治方面</span><span style="COLOR: blue">. </span><span style="COLOR: blue">学习的枯燥经常让他在课堂上昏昏欲睡</span><span style="COLOR: blue">, </span><span style="COLOR: blue">学习成绩也不尽如人意</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他发现他在选修的计算机课上</span><span style="COLOR: blue">, </span><span style="COLOR: blue">有着惊人的天赋</span><span style="COLOR: blue">. </span><span style="COLOR: blue">往往是别人还在苦思冥想如何写出程序时</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他早就把程序写完而无所事事</span><span style="COLOR: blue">. </span><span style="COLOR: blue">后来</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他发现他像发疯一样爱上了这门学科</span><span style="COLOR: blue">. </span><span style="COLOR: blue">因此</span><span style="COLOR: blue">, </span><span style="COLOR: blue">在大学二年级时</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他自己做出了一个惊人的决定</span><span style="COLOR: blue">, &ldquo;</span><span style="COLOR: blue">转系</span><span style="COLOR: blue">!&rdquo; </span><span style="COLOR: blue">这意味着他将从一个全美排名第</span><span style="COLOR: blue">3</span><span style="COLOR: blue">的专业转到一个毫无名气可言的专业</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他听从了内心的选择</span><span style="COLOR: blue">, </span><span style="COLOR: blue">还是选择了计算机专业</span><span style="COLOR: blue">. </span><span style="COLOR: blue">而这个决定</span><span style="COLOR: blue">, </span><span style="COLOR: blue">改写了他一生的轨迹</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: red">●</span><span style="COLOR: red">成功箴言之三</span><span style="COLOR: red">: </span><span style="COLOR: red">思考比传道重要</span><span style="COLOR: red">观点比解惑重要</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">李开复以哥伦比亚大学计算机专业第一名的成绩毕业以后</span><span style="COLOR: blue">, </span><span style="COLOR: blue">顺利进入匹兹堡的卡内基</span><span style="COLOR: blue">&middot;</span><span style="COLOR: blue">梅隆大学就读计算机专业的博士</span><span style="COLOR: blue">. </span><span style="COLOR: blue">在读博士之前</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他的系主任</span><span style="COLOR: blue">Haberman</span><span style="COLOR: blue">就告诉他</span><span style="COLOR: blue">, </span><span style="COLOR: blue">读博士的目的</span><span style="COLOR: blue">, </span><span style="COLOR: blue">就是要做出世界上一流的博士论文</span><span style="COLOR: blue">. </span><span style="COLOR: blue">至少在本领域是世界顶尖的</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这句话让李开复十分震撼</span><span style="COLOR: blue">. </span><span style="COLOR: blue">然而</span><span style="COLOR: blue">, </span><span style="COLOR: blue">下面一句话</span><span style="COLOR: blue">, </span><span style="COLOR: blue">让他受益更深</span><span style="COLOR: blue">, Haberman</span><span style="COLOR: blue">说</span><span style="COLOR: blue">, &ldquo;</span><span style="COLOR: blue">做出一流的博士论文</span><span style="COLOR: blue">, </span><span style="COLOR: blue">也不是读博士的最终目的</span><span style="COLOR: blue">. </span><span style="COLOR: blue">而是你在读博士的过程中</span><span style="COLOR: blue">, </span><span style="COLOR: blue">获得一种思考的方法</span><span style="COLOR: blue">, </span><span style="COLOR: blue">而这种方法将使你在任何一个领域</span><span style="COLOR: blue">, </span><span style="COLOR: blue">都获得顶尖的成功</span><span style="COLOR: blue">!&rdquo; </span><span style="COLOR: blue">而李开复的努力证实了这种说法</span><span style="COLOR: blue">. </span><span style="COLOR: blue">李开复关于统计学方法做出的语音识别博士论文至今还是语音识别产品的理论基础</span><span style="COLOR: blue">. </span><span style="COLOR: blue">而李开复也在博士生涯中</span><span style="COLOR: blue">, </span><span style="COLOR: blue">学会了解决问题</span><span style="COLOR: blue">, </span><span style="COLOR: blue">拥有了战胜困难的勇气</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: red">●</span><span style="COLOR: red">成功箴言之四</span><span style="COLOR: red">: </span><span style="COLOR: red">我不同意你</span><span style="COLOR: red">但我支持你</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">李开复在读博士期间选择的研究方向是</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">语音识别</span><span style="COLOR: blue">&rdquo;. </span><span style="COLOR: blue">师从</span><span style="COLOR: blue">博士生导致罗迪</span><span style="COLOR: blue">. </span><span style="COLOR: blue">罗迪</span><span style="COLOR: blue">教授鼓励李开复用专家统计的方法来研究语音识别</span><span style="COLOR: blue">, </span><span style="COLOR: blue">而李开复在这个领域经过了一番研究后</span><span style="COLOR: blue">, </span><span style="COLOR: blue">发现语音识别用这个方法可以获得特定语者</span><span style="COLOR: blue">95%</span><span style="COLOR: blue">的语音识别率</span><span style="COLOR: blue">. </span><span style="COLOR: blue">李开复把整个研究过程写了一篇论文</span><span style="COLOR: blue">. </span><span style="COLOR: blue">一经发表</span><span style="COLOR: blue">, </span><span style="COLOR: blue">得到了很正面的回馈</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是他最终发现</span><span style="COLOR: blue">, </span><span style="COLOR: blue">专家系统是有严重局限性的</span><span style="COLOR: blue">, </span><span style="COLOR: blue">无法延伸到做不特定语者的语音识别</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他认为有数据的支持的统计模式是唯一的希望</span><span style="COLOR: blue">. </span><span style="COLOR: blue">当他把想法告诉导师</span><span style="COLOR: blue">, </span><span style="COLOR: blue">罗迪告诉他</span><span style="COLOR: blue">, &ldquo;</span><span style="COLOR: blue">我不同意你</span><span style="COLOR: blue">, </span><span style="COLOR: blue">但是我支持你</span><span style="COLOR: blue">!&rdquo; </span><span style="COLOR: blue">这样的说法让李开复备受感动</span><span style="COLOR: blue">, </span><span style="COLOR: blue">成就了李开复博士论文的成功</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他的论文当年被评为《<a href="http://fifid.com/search/%E5%95%86%E4%B8%9A%E5%91%A8%E5%88%8A?src=yb_qsal&utm_source=yb_qsal&utm_medium=link&utm_content=rsspost" target="_blank">商业周刊</a>》最杰出创新</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: red">●</span><span style="COLOR: red">成功箴言之五</span><span style="COLOR: red">: </span><span style="COLOR: red">挫折不是惩罚</span><span style="COLOR: red">而是学习的机会</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">李开复在博士生生涯里</span><span style="COLOR: blue">, </span><span style="COLOR: blue">成绩依然优秀</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他用统计学做出的语音识别率大大地提高了而博士论文发表在国际期刊上</span><span style="COLOR: blue">, </span><span style="COLOR: blue">让全美的科技界震惊</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这样一个明星学生可以说在卡内基</span><span style="COLOR: blue">&middot;</span><span style="COLOR: blue">梅隆里没有什么忧愁可言</span><span style="COLOR: blue">. </span><span style="COLOR: blue">然而</span><span style="COLOR: blue">, </span><span style="COLOR: blue">一次暑期课程让他经历了不小的挫折</span><span style="COLOR: blue">. 1983</span><span style="COLOR: blue">年暑假</span><span style="COLOR: blue">, </span><span style="COLOR: blue">李开复得到了暑期工的工作</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">其任务就是教宾夕法尼亚州</span><span style="COLOR: blue">60</span><span style="COLOR: blue">个最聪明的高中生计算机课程</span><span style="COLOR: blue">. </span><span style="COLOR: blue">李开复自己对那段时光非常享受</span><span style="COLOR: blue">, </span><span style="COLOR: blue">每天忙碌地备课</span><span style="COLOR: blue">, </span><span style="COLOR: blue">还想出各种教学方法</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他领取薪水的那一瞬间看到学生的评语</span><span style="COLOR: blue">, </span><span style="COLOR: blue">才知道学生认为</span><span style="COLOR: blue">, &ldquo;</span><span style="COLOR: blue">李</span><span style="COLOR: blue">老师的教学就像催眠曲</span><span style="COLOR: blue">!&rdquo; </span><span style="COLOR: blue">这样的评价无疑使得李开复备受打击</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">然而</span><span style="COLOR: blue">, </span><span style="COLOR: blue">李开复并没有气馁</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他把失败当成了学习的机会</span><span style="COLOR: blue">, </span><span style="COLOR: blue">因此获得了成功</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他在此后的生涯里</span><span style="COLOR: blue">, </span><span style="COLOR: blue">尤其是回到中国以后</span><span style="COLOR: blue">, </span><span style="COLOR: blue">做了上千场的演讲</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这无疑得益于学生时代的练习</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: red">●</span><span style="COLOR: red">成功箴言之六</span><span style="COLOR: red">: </span><span style="COLOR: red">创新不重要</span><span style="COLOR: red">有用的创新才重要</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">在苹果和</span><span style="COLOR: blue">SGI</span><span style="COLOR: blue">李开复度过了八年科学家到产品副总裁的路程</span><span style="COLOR: blue">. </span><span style="COLOR: blue">在这段路程上</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他有许多成功</span><span style="COLOR: blue">, </span><span style="COLOR: blue">例如苹果的</span><span style="COLOR: blue">QuickTime, </span><span style="COLOR: blue">但是在</span><span style="COLOR: blue">SGI</span><span style="COLOR: blue">他碰到了巨大的挫折</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他的团队发明的三维浏览器</span><span style="COLOR: blue">, </span><span style="COLOR: blue">在市场上失败</span><span style="COLOR: blue">, </span><span style="COLOR: blue">整个团队和产品被公司廉价卖掉</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这时</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他又发挥了</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">从挫折中学习</span><span style="COLOR: blue">&rdquo;</span><span style="COLOR: blue">的反省</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他理解了</span><span style="COLOR: blue">, </span><span style="COLOR: blue">仅仅有科学家的</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">新</span><span style="COLOR: blue">&rdquo;</span><span style="COLOR: blue">、</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">酷</span><span style="COLOR: blue">&rdquo;</span><span style="COLOR: blue">的创新是不够的</span><span style="COLOR: blue">. </span><span style="COLOR: blue">创新必须是针对用户的</span><span style="COLOR: blue">, </span><span style="COLOR: blue">必须是有用的</span><span style="COLOR: blue">. </span><span style="COLOR: blue">做产品的管理</span><span style="COLOR: blue">, </span><span style="COLOR: blue">必须把用户放在第一位</span><span style="COLOR: blue">. </span><span style="COLOR: blue">李开复</span><span style="COLOR: blue">1998</span><span style="COLOR: blue">年夏天回到中国</span><span style="COLOR: blue">, </span><span style="COLOR: blue">在中国开创微软中国研究院</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这时</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他把这个教训带入中国团队</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: red">●</span><span style="COLOR: red">成功箴言之七</span><span style="COLOR: red">: </span><span style="COLOR: red">完美的工作</span><span style="COLOR: red">成长兴趣</span><span style="COLOR: red">影响力</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">2000</span><span style="COLOR: blue">年</span><span style="COLOR: blue">, </span><span style="COLOR: blue">李开复被调回微软总部成为微软全球副总裁</span><span style="COLOR: blue">. </span><span style="COLOR: blue">几年工作后</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他深深地体会了一个完美工作的标准</span><span style="COLOR: blue">, </span><span style="COLOR: blue">那就是自己有浓厚的兴趣</span><span style="COLOR: blue">, </span><span style="COLOR: blue">能有成长的空间</span><span style="COLOR: blue">, </span><span style="COLOR: blue">并具备一定的影响力</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他怀念着在中国研究院的兴趣</span><span style="COLOR: blue">, </span><span style="COLOR: blue">还有在刚调回美国的学习</span><span style="COLOR: blue">, </span><span style="COLOR: blue">但是他期望着有更大的影响力</span><span style="COLOR: blue">. </span><span style="COLOR: blue">当他发现谷歌将开始在中国创建时</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他主动找到了谷歌</span><span style="COLOR: blue"> CEO</span><span style="COLOR: blue">施密特</span><span style="COLOR: blue">, </span><span style="COLOR: blue">并表示愿意加入谷歌</span><span style="COLOR: blue">. </span><span style="COLOR: blue">而施密特十分高兴</span><span style="COLOR: blue">, </span><span style="COLOR: blue">在一个月之后就给了李开复</span><span style="COLOR: blue">OFFER. </span><span style="COLOR: blue">李开复说</span><span style="COLOR: blue">, </span><span style="COLOR: blue">当你遇到喜欢的工作机会</span><span style="COLOR: blue">, </span><span style="COLOR: blue">不需要任何的迟疑</span><span style="COLOR: blue">, </span><span style="COLOR: blue">而需要积极主动来争取</span><span style="COLOR: blue">. </span><span style="COLOR: blue">因为这样的机会往往炙手可热</span><span style="COLOR: blue">, </span><span style="COLOR: blue">一秒钟的犹豫你就可能与之失之交臂</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: red">●</span><span style="COLOR: red">成功箴言之八</span><span style="COLOR: red">: </span><span style="COLOR: red">用勇气改变可以改变的事情</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">2005</span><span style="COLOR: blue">年</span><span style="COLOR: blue">, </span><span style="COLOR: blue">是李开复的转折年</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他没有想到</span><span style="COLOR: blue">, </span><span style="COLOR: blue">一次普通换工作的经历引发了一次地震</span><span style="COLOR: blue">. </span><span style="COLOR: blue">微软的诉讼使他陷入了人生最低的低谷</span><span style="COLOR: blue">. </span><span style="COLOR: blue">对他的虚假负面报道铺天盖地而来</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他想到了他一生的座右铭</span><span style="COLOR: blue">: </span><span style="COLOR: blue">用勇气改变可以改变的事情</span><span style="COLOR: blue">, </span><span style="COLOR: blue">用胸怀接受不能改变的事情</span><span style="COLOR: blue">, </span><span style="COLOR: blue">用智慧分辨两者的不同</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">于是</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他全力以赴地投入了这场战斗</span><span style="COLOR: blue">, </span><span style="COLOR: blue">不再理会那些不能改变的谣言</span><span style="COLOR: blue">. </span><span style="COLOR: blue">将从微软提取的</span><span style="COLOR: blue">30</span><span style="COLOR: blue">万份邮件资料中找寻有利的证据以证明自己的清白</span><span style="COLOR: blue">. </span><span style="COLOR: blue">经过两个月的努力</span><span style="COLOR: blue">, </span><span style="COLOR: blue">法庭同意李开复到谷歌工作</span><span style="COLOR: blue">. </span><span style="COLOR: blue">最后</span><span style="COLOR: blue">, </span><span style="COLOR: blue">当李开复回到媒体面前开始工作时</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他发现</span><span style="COLOR: blue">, </span><span style="COLOR: blue">没有一个记者还提问与诉讼有关的问题</span><span style="COLOR: blue">, </span><span style="COLOR: blue">因为作为官司的胜利者</span><span style="COLOR: blue">, </span><span style="COLOR: blue">媒体不再相信那些谣言</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: red">●</span><span style="COLOR: red">成功箴言之九</span><span style="COLOR: red">: </span><span style="COLOR: red">做最好的领导</span><span style="COLOR: red">让员工做有兴趣的事</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">谷歌公司聚集着世界上最天才的工程师们</span><span style="COLOR: blue">. </span><span style="COLOR: blue">如何管理这些</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">天才</span><span style="COLOR: blue">&rdquo;, </span><span style="COLOR: blue">是摆在李开复面前的另一个课题</span><span style="COLOR: blue">. </span><span style="COLOR: blue">李开复非常推崇</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">放权</span><span style="COLOR: blue">&rdquo;</span><span style="COLOR: blue">式的管理</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他深知在以创意为主要生产力的公司里</span><span style="COLOR: blue">, </span><span style="COLOR: blue">不能严格地恪守那些死板的规定</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他可以让员工自己提出研究的方向</span><span style="COLOR: blue">. </span><span style="COLOR: blue">大家讨论决定</span><span style="COLOR: blue">. </span><span style="COLOR: blue">也可以让员工用</span><span style="COLOR: blue">20%</span><span style="COLOR: blue">的时间做自己喜欢的项目</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他甚至可以让员工对公司提出建议</span><span style="COLOR: blue">. </span><span style="COLOR: blue">如果合理就采纳</span><span style="COLOR: blue">. </span><span style="COLOR: blue">谷歌里自由的环境非常有名</span><span style="COLOR: blue">. </span><span style="COLOR: blue">作为管理者</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他主要是在公司战略、每年的目标、合作伙伴、总部沟通上努力</span><span style="COLOR: blue">, </span><span style="COLOR: blue">其他的时间</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他更是一个企业文化的维护者、公司的发言人、员工的教练</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: red">●</span><span style="COLOR: red">成功箴言之十</span><span style="COLOR: red">: </span><span style="COLOR: red">价值不是你拥有多少</span><span style="COLOR: red">而是你留下多少</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">什么是成功</span><span style="COLOR: blue">? </span><span style="COLOR: blue">是否拥有了名利就算成功</span><span style="COLOR: blue">. </span><span style="COLOR: blue">对此</span><span style="COLOR: blue">, </span><span style="COLOR: blue">李开复回答</span><span style="COLOR: blue">, </span><span style="COLOR: blue">你的价值不是你拥有多少</span><span style="COLOR: blue">, </span><span style="COLOR: blue">而是你留下多少</span><span style="COLOR: blue">. </span><span style="COLOR: blue">当他的一个同事赚够了钱而发现失去人生目标时</span><span style="COLOR: blue">, </span><span style="COLOR: blue">才意识到</span><span style="COLOR: blue">, </span><span style="COLOR: blue">人生的价值在于贡献和对他人的影响</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">李开复曾经有过一个独特的梦想</span><span style="COLOR: blue">, </span><span style="COLOR: blue">就是在中国创建一所一流的</span><span style="COLOR: blue">, </span><span style="COLOR: blue">有世界影响力的私立大学</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他甚至身体力行地为此多方奔走</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是最终因为种种原因没有成功</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是他并没有气馁</span><span style="COLOR: blue">, </span><span style="COLOR: blue">而是用另外的方式实践梦想</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他说</span><span style="COLOR: blue">: &ldquo;</span><span style="COLOR: blue">我不能改变教育</span><span style="COLOR: blue">, </span><span style="COLOR: blue">但是我可以帮助学生</span><span style="COLOR: blue">.&rdquo; </span><span style="COLOR: blue">他给中国的大学生写信</span><span style="COLOR: blue">, </span><span style="COLOR: blue">写书</span><span style="COLOR: blue">, </span><span style="COLOR: blue">办了</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">我学网</span><span style="COLOR: blue">&rdquo;, </span><span style="COLOR: blue">每年面对十万学生做演讲</span><span style="COLOR: blue">. </span><span style="COLOR: blue">在帮助学生的过程中</span><span style="COLOR: blue">, </span><span style="COLOR: blue">李开复看到中国大学生的成长</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他说</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他曾经想过自己的墓志铭应该有科学家或者企业家的注脚</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他说他现在已经没有这种想法</span><span style="COLOR: blue">, </span><span style="COLOR: blue">如果他的墓志铭上有热心教育者的字样</span><span style="COLOR: blue">, </span><span style="COLOR: blue">他会感觉到内心的温暖</span><span style="COLOR: blue">.</span></div>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3143504.html</guid>
        <pubDate>Wed, 21 Jan 2009 04:01:49 GMT</pubDate>
<category>成功</category>
      </item>

      <item>
        <title>好久没来,说两句</title>
        <link>http://princetonboy.ycool.com/post.3115032.html</link>
        <description><![CDATA[<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: blue">时间飞快</span><span style="COLOR: blue">,</span><span style="COLOR: blue">转眼</span><span style="COLOR: blue">2008</span><span style="COLOR: blue">年要即将远去</span><span style="COLOR: blue">,</span><span style="COLOR: blue">回顾与思考之余</span><span style="COLOR: blue">,</span><span style="COLOR: blue">似乎更多的是无奈</span><span style="COLOR: blue">.</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: blue">辛苦但不是很努力的工作了</span><span style="COLOR: blue">9</span><span style="COLOR: blue">个月</span><span style="COLOR: blue">,</span><span style="COLOR: blue">让我大受打击的是第一个工作之年却没有年末奖金</span><span style="COLOR: blue">,</span><span style="COLOR: blue">公司对内声明现在拥有没有内债和外债的</span><span style="COLOR: blue">3</span><span style="COLOR: blue">亿美金的现金作为过冬的储备</span><span style="COLOR: blue">,</span><span style="COLOR: blue">却不给我们发奖金</span><span style="COLOR: blue">,</span><span style="COLOR: blue">于情于理都说不过去</span><span style="COLOR: blue">,</span><span style="COLOR: blue">这绝对不是一个人性化的企业</span><span style="COLOR: blue">. </span><span style="COLOR: blue">要知道我们平时的工作时间基本上是早上九点半到晚上八点</span><span style="COLOR: blue">,</span><span style="COLOR: blue">虽然公司规定下班时间是下午五点半</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但是我们</span><span style="COLOR: blue">ONS</span><span style="COLOR: blue">研发部门的人基本上每晚都是晚上八点以后才离开公司的</span><span style="COLOR: blue">,</span><span style="COLOR: blue">可以说基本上把我们的美好时间都献给了它</span><span style="COLOR: blue">,</span><span style="COLOR: blue">可是到头来呢</span><span style="COLOR: blue">,</span><span style="COLOR: blue">连年末奖金都没有</span><span style="COLOR: blue">,</span><span style="COLOR: blue">虽然知道这次经济危机的严重性以至于很多的公司在裁员或者是降薪</span><span style="COLOR: blue">,</span><span style="COLOR: blue">有的甚至倒闭</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但是人都这样子的</span><span style="COLOR: blue">,</span><span style="COLOR: blue">就像自己付出了很多汗水与心血</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但是最后却没有任何回报</span><span style="COLOR: blue">,</span><span style="COLOR: blue">内心总有不少的失落与无奈</span><span style="COLOR: blue">.</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: blue">也因为如此</span><span style="COLOR: blue">,</span><span style="COLOR: blue">自己做了换工作的打算</span><span style="COLOR: blue">,</span><span style="COLOR: blue">当然还只是计划</span><span style="COLOR: blue">,</span><span style="COLOR: blue">还是没有做详细布置的计划</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这几个月真的几乎把所有的时间都献给了工作</span><span style="COLOR: blue">,</span><span style="COLOR: blue">真的有点伤感</span><span style="COLOR: blue">. </span><span style="COLOR: blue">伤感是因为我心疼自己那宝贵的时间和自己的精力</span><span style="COLOR: blue">.</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: blue">昨天圣诞节和宝宝一起在家里度过</span><span style="COLOR: blue">,</span><span style="COLOR: blue">顺便去修了一下态势台式电脑</span><span style="COLOR: blue">(</span><span style="COLOR: blue">都坏了几个月了</span><span style="COLOR: blue">),</span><span style="COLOR: blue">是电源坏了</span><span style="COLOR: blue">,</span><span style="COLOR: blue">于是买了一个新的电源</span><span style="COLOR: blue">,</span><span style="COLOR: blue">顺便给自己的笔记本买了个小鼠标</span><span style="COLOR: blue">(</span><span style="COLOR: blue">我的笔记本都</span><span style="COLOR: blue">n</span><span style="COLOR: blue">个月没有用鼠标了</span><span style="COLOR: blue">) </span><span style="COLOR: blue">一共花了</span><span style="COLOR: blue">200</span><span style="COLOR: blue">块大洋</span><span style="COLOR: blue">! </span><span style="COLOR: blue">然后去浮力森林拿蛋糕</span><span style="COLOR: blue">(</span><span style="COLOR: blue">公司发的蛋糕券</span><span style="COLOR: blue">). </span><span style="COLOR: blue">宝宝是个特别容易满足的小女孩</span><span style="COLOR: blue">,</span><span style="COLOR: blue">拿了两个小蛋糕就很开心</span><span style="COLOR: blue">,</span><span style="COLOR: blue">说以后想吃再来领</span><span style="COLOR: blue">,</span><span style="COLOR: blue">看着她我的感觉比蛋糕还甜</span><span style="COLOR: blue">,</span><span style="COLOR: blue">很多时候我都能在她身上得到安慰</span><span style="COLOR: blue">,</span><span style="COLOR: blue">老天能让我碰到这样的知己我真的很感谢了</span><span style="COLOR: blue">.</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: blue">今天宝宝要上班了</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而我申请了调修连起来放假四天</span><span style="COLOR: blue">,</span><span style="COLOR: blue">这几天准备一下自己的简历</span><span style="COLOR: blue">. </span><span style="COLOR: blue">宝宝在阿里巴巴辛苦的坚持了</span><span style="COLOR: blue">6</span><span style="COLOR: blue">个月终于转正加薪了</span><span style="COLOR: blue">,</span><span style="COLOR: blue">转正后的工资还挺诱人的</span><span style="COLOR: blue">,</span><span style="COLOR: blue">都快赶上我了呢</span><span style="COLOR: blue">! </span><span style="COLOR: blue">我今天起来后就一直呆在电脑前到现在</span><span style="COLOR: blue">,</span><span style="COLOR: blue">都已经习惯了这样的生活方式了</span><span style="COLOR: blue">,</span><span style="COLOR: blue">因为工作也是这样一天到晚跟着电脑面对面</span><span style="COLOR: blue">. </span><span style="COLOR: blue">听听音乐</span><span style="COLOR: blue">,</span><span style="COLOR: blue">在</span><span style="COLOR: blue">TopCoder</span><span style="COLOR: blue">上看看题目做做题目</span><span style="COLOR: blue">,</span><span style="COLOR: blue">没有压力这就是我的喜欢的生活</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但是现实不能总这样生活</span><span style="COLOR: blue">,</span><span style="COLOR: blue">所以只好趁自己一个人的时候偷偷懒</span><span style="COLOR: blue">,</span><span style="COLOR: blue">享受享受这舒服的生活</span><span style="COLOR: blue">! </span><span style="COLOR: blue">不过舒服的生活总是太短暂</span><span style="COLOR: blue">.</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: blue">马上就要进入</span><span style="COLOR: blue">2009</span><span style="COLOR: blue">年</span><span style="COLOR: blue">,</span><span style="COLOR: blue">自己又长一岁</span><span style="COLOR: blue">,</span><span style="COLOR: blue">感觉时间拼命抓都抓不住</span><span style="COLOR: blue">,</span><span style="COLOR: blue">我还来不及调整自己</span><span style="COLOR: blue">,</span><span style="COLOR: blue">一切就都扑面而来</span><span style="COLOR: blue">. </span><span style="COLOR: blue">最近在看曾经是新东方老师的张扬的书《<a href="http://fifid.com/search/%E6%88%91%E7%9A%84%E5%93%88%E4%BD%9B%E6%97%A5%E8%AE%B0?src=yb_qsal&utm_source=yb_qsal&utm_medium=link&utm_content=rsspost" target="_blank">我的哈佛日记</a>》</span><span style="COLOR: blue">,</span><span style="COLOR: blue">知道了还有人的学习和生活方式是这样的</span><span style="COLOR: blue">,</span><span style="COLOR: blue">这也是我曾经的梦想</span><span style="COLOR: blue">,</span><span style="COLOR: blue">当然也是我一直的梦想</span><span style="COLOR: blue">,</span><span style="COLOR: blue">因为我并没有放弃追求</span><span style="COLOR: blue">. </span><span style="COLOR: blue">告诉自己</span><span style="COLOR: blue">: </span><span style="COLOR: blue">伤心的时候微笑</span><span style="COLOR: blue">,</span><span style="COLOR: blue">高兴的时候大笑</span><span style="COLOR: blue">,</span><span style="COLOR: blue">乐观看待一切成败是最好的心态</span><span style="COLOR: blue">. </span><span style="COLOR: blue">人有完整的心态才有完整的人生</span><span style="COLOR: blue">.</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: blue">人生就像一个魔方</span><span style="COLOR: blue">,</span><span style="COLOR: blue">应该不停的思考</span><span style="COLOR: blue">,</span><span style="COLOR: blue">旋转和寻找</span><span style="COLOR: blue">. </span><span style="COLOR: blue">其实很多时候人的幸福和快乐是自己把握的</span><span style="COLOR: blue">. </span><span style="COLOR: blue">乐观的心态</span><span style="COLOR: blue">,</span><span style="COLOR: blue">自得其乐</span><span style="COLOR: blue">,</span><span style="COLOR: blue">随遇而安</span><span style="COLOR: blue">,</span><span style="COLOR: blue">平和的心态</span><span style="COLOR: blue">,</span><span style="COLOR: blue">这样就会发现其实声明很短暂</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但是快乐却可以很稳定</span><span style="COLOR: blue">. </span><span style="COLOR: blue">见到的世界越大</span><span style="COLOR: blue">,</span><span style="COLOR: blue">就越能看到自己明显的改变</span><span style="COLOR: blue">. </span><span style="COLOR: blue">我告诉自己</span><span style="COLOR: blue">,</span><span style="COLOR: blue">在未来的一年里</span><span style="COLOR: blue">,</span><span style="COLOR: blue">不要放弃自己的梦</span><span style="COLOR: blue">,</span><span style="COLOR: blue">朝着它乐观的一路追寻</span><span style="COLOR: blue">,</span><span style="COLOR: blue">就对了</span><span style="COLOR: blue">!</span></div>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3115032.html</guid>
        <pubDate>Fri, 26 Dec 2008 09:12:13 GMT</pubDate>
<category>生活</category>

        <category>感悟</category>
      </item>

      <item>
        <title>SRM426 Division II - ShufflingMachine</title>
        <link>http://princetonboy.ycool.com/post.3100814.html</link>
        <description><![CDATA[<div><strong><span style="FONT-SIZE: 10.5pt">1. Problem Statement for ShufflingMachine</span></strong></div>
<div><strong><span style="FONT-SIZE: 10.5pt; COLOR: blue">Problem Statement</span></strong></div>
<div><font size="2">A card shuffling machine is a device designed to randomize the order of a deck of cards. A particularly poor (but unfortunately relatively common) design of machine works as follows: an integer N is selected uniformly at random between 1 and <strong>maxShuffles</strong>, inclusive, and a series of N exactly similar deterministic shuffles are performed. A deterministic shuffle is a fixed permutation of the cards. The randomness of the resulting ordering is clearly therefore only dependent on the number of shuffles chosen. After the deck has been shuffled N times, the cards are distributed to the players.</font></div>
<div><font size="2">A particularly dishonest player has decided that he wishes to cheat. He has identified <strong>K</strong> cards in the deck that he wants to receive when the cards are distributed. He has managed to figure out both the fixed shuffle that the machine uses and also the maximum number of shuffles chosen. The fixed shuffle is given in a vector &lt;int&gt; <strong>shuffle</strong>, in which element i gives the position after the shuffle of the card that was initially in position i (both 0-based). The positions in the deck of the cards the player will receive after they have been shuffled are given in <strong>cardsReceived</strong> (0-based). Before the cards are shuffled, the player can order them in any way he wishes. Determine the initial ordering that will maximize the expected number of the <strong>K</strong> desired cards that he will receive and return this expected number.</font></div>
<div><strong><span style="FONT-SIZE: 10.5pt; COLOR: blue">Definition</span></strong></div>
<div><font size="2">Class: ShufflingMachine</font></div>
<div><font size="2">Method: stackDeck</font></div>
<div><font size="2">Parameters: vector &lt;int&gt;, int, vector &lt;int&gt;, int</font></div>
<div><font size="2">Returns: double</font></div>
<div><font size="2">Method signature: double stackDeck(vector &lt;int&gt; shuffle, int maxShuffles, vector &lt;int&gt; cardsReceived, int K)</font></div>
<div><font size="2">(be sure your method is public)</font></div>
<div><strong><span style="FONT-SIZE: 10.5pt; COLOR: blue">Notes</span></strong></div>
<div><font size="2">- Your return value must be accurate to an absolute or relative tolerance of 1e-9.</font></div>
<div><strong><span style="FONT-SIZE: 10.5pt; COLOR: blue">Constraints</span></strong></div>
<div><font size="2">- <strong>shuffle</strong> will contain between 1 and 50 elements, inclusive.</font></div>
<div><font size="2">- <strong>shuffle</strong> will be a permutation of the numbers between 0 and M-1, inclusive, where M is the number of elements in <strong>shuffle</strong>.</font></div>
<div><font size="2">- <strong>maxShuffles</strong> will be between 1 and 100, inclusive.</font></div>
<div><font size="2">- <strong>cardsReceived</strong> will contain between 1 and M elements, inclusive.</font></div>
<div><font size="2">- Each element of <strong>cardsReceived</strong> will be between 0 and M-1.</font></div>
<div><font size="2">- The elements of <strong>cardsReceived</strong> will be distinct.</font></div>
<div><font size="2">- <strong>K</strong> will be between 1 and M, inclusive.</font></div>
<div><strong><span style="FONT-SIZE: 10.5pt; COLOR: blue">Examples</span></strong></div>
<div><font size="2">0)</font></div>
<div style="TEXT-INDENT: 21pt"><font size="2">{1,0}</font></div>
<div style="TEXT-INDENT: 21pt"><font size="2">3</font></div>
<div style="TEXT-INDENT: 21pt"><font size="2">{0}</font></div>
<div style="TEXT-INDENT: 21pt"><font size="2">1</font></div>
<div style="TEXT-INDENT: 21pt"><font size="2">Returns: 0.6666666666666666</font></div>
<div style="TEXT-INDENT: 21pt"><font size="2">This deck contains only 2 cards and they swap positions after each shuffle. The cheating player receives first card in the deck after the shuffling is completed and he wants to receive 1 of the cards in the deck. If the deck is shuffled 1 or 3 times, he will receive the card that was initially in position 1. If the deck is shuffled 2 times, he will receive the card in position 0. It is therefore optimal to put the card that he wants in position 1 and he will receive it 2 times out of 3.</font></div>
<div><font size="2">1)</font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {1,2,0}</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {0}</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Returns: 0.8</span></font></div>
<div style="TEXT-INDENT: 21pt"><font size="2">If he puts the cards he wants in positions 1 and 2, he will receive one of them 4 times out of 5.</font></div>
<div><font size="2">2)</font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {1,2,0,4,3}</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {0,3}</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Returns: 1.0</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If he puts the cards in positions 3 and 4, he will receive exactly one of them, regardless of how many shuffles are chosen.</span></font></div>
<div><font size="2">3)</font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {0,4,3,5,2,6,1}</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 19</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {1,3,5}</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Returns: 1.0526315789473684</span></font></div>
<div><font size="2">4)</font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {3,4,7,2,8,5,6,1,0,9}</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 47</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {6,3,5,2,8,7,4}</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Returns: 6.297872340425532</span></font></div>
<div>&nbsp;</div>
<div><font size="2">This problem statement is the exclusive and proprietary property of TopCoder, Inc. Any unauthorized use or reproduction of this information without the prior written consent of TopCoder, Inc. is strictly prohibited. (c)2003, TopCoder, Inc. All rights reserved.</font></div>
<div>&nbsp;</div>
<div><strong><span style="FONT-SIZE: 10.5pt">2. Problem Analysis for ShufflingMachine</span></strong></div>
<div align="left"><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; First of all, we should understand that what results does the problem wants us to make out. We see the last sentence: &ldquo;Determine the initial ordering that will <u style="text-underline: wave">maximize the expected number of the <strong>K</strong> desired cards</u> that he will receive and <u style="text-underline: wave">return this expected number</u>.&rdquo; So, if I have a desired card and a position in the deck of the cards that I will receive(called cardsReceived position.) after they have been shuffled, when I know the fixed shuffle that the machine uses and the number of shuffles chosen, then I can figure out which position(s) I should put the desired card in initial ordering to receive it. Then, if I only know the fixed shuffle that the machine uses&nbsp;and the max shuffles number <strong>maxShuffles</strong>, it is we can choose the number of shuffles between 1 and <strong>maxShuffles</strong>, to maximize the expected number of the desired card that I will receive, I will put the desired card in some position in initial ordering which it will be shuffled to the receive position as far as possible after all of <strong>maxShuffles</strong> times shuffles. Such as example 0 :<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img alt="" border="0" src="http://node1.foto.ycstatic.com/200812/01/f/27303391.jpg" /><br />
</span><strong><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Graph one</font></strong></font></div>
<div><font size="2">Pay attention that if there are more than one desired card, then you only need to receive one of them on the round. So, if there are two desired cards like example 1, you only need to select two cards&rsquo; positions with the most times appearing on the cardReceived position. In example 1, the two cards are B and C in the following graph.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img alt="" border="0" src="http://node1.foto.ycstatic.com/200812/01/0/27303392.jpg" /><br />
</font><strong><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Graph two</font></strong></div>
<div><font size="2">If there are more than one cardsReceived position, then you only need to select <strong>K</strong> cards&rsquo; positions with the most times appearing on these cardReceived positions. Such as example 2 in graph three:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img alt="" border="0" src="http://node1.foto.ycstatic.com/200812/01/1/27303393.jpg" /><br />
</font><strong><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Graph three</font></strong></div>
<div><font size="2">From the graph above, we can see that we select D and E cards&rsquo; positions to put the desired <strong>K</strong> cards. Because the two cards appears on the cardsReceived positions most frequently with totally 7 times. Exactly, we can also select C and E cards&rsquo; positions.</font></div>
<div>&nbsp;</div>
<div><font size="2">Now, we know how to make out the expected number! </font><span style="FONT-SIZE: 10.5pt">J</span></div>
<div>&nbsp;</div>
<div><strong><span style="FONT-SIZE: 10.5pt">3. Source Code for ShufflingMachine</span></strong></div>
<div><font size="2">#include &lt;iostream&gt;</font></div>
<div><font size="2">#include &lt;vector&gt;</font></div>
<div><font size="2">#include &lt;algorithm&gt;</font></div>
<div>&nbsp;</div>
<div><font size="2">using namespace std ;</font></div>
<div>&nbsp;</div>
<div><font size="2">class ShufflingMachine</font></div>
<div><font size="2">{</font></div>
<div><font size="2">public:</font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double stackDeck(vector &lt;int&gt; shuffle, int maxShuffles, vector &lt;int&gt; cardsReceived, int K)</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int i , j , count = 0 ;</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int cards = shuffle.size() , cardsR = cardsReceived.size() ;</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vector &lt;int&gt; card1 ;</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vector &lt;int&gt; card2(cards,0) , exsit(cards,0) ;</span></font></div>
<div>&nbsp;</div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i = 0 ; i &lt; cards ; i ++)</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; card1.push_back(i) ;</span></font></div>
<div>&nbsp;</div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i = 0 ; i &lt; maxShuffles ; i ++)</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (j = 0 ; j &lt; cards ; j ++)</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; card2[shuffle[j]] = card1[j] ;</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; card1 = card2 ;</span></font></div>
<div>&nbsp;</div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (j = 0 ; j &lt; cardsR ; j ++)</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exsit[card1[cardsReceived[j]]] ++ ;</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></font></div>
<div>&nbsp;</div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sort(exsit.begin(),exsit.end()) ;</span></font></div>
<div>&nbsp;</div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i = 0 ; i &lt; K ; i ++)</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; count += exsit[cards-i-1] ;</span></font></div>
<div>&nbsp;</div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 1.0*count / maxShuffles ;</span></font></div>
<div><font size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></font></div>
<div><font size="2">protected:</font></div>
<div><font size="2">private:</font></div>
<div><font size="2">};</font></div>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3100814.html</guid>
        <pubDate>Mon, 01 Dec 2008 05:12:15 GMT</pubDate>
<category>search</category>

        <category>,</category>

        <category>simple</category>

        <category>maths</category>
      </item>

      <item>
        <title>SRM426 Division II - KnockoutTourney</title>
        <link>http://princetonboy.ycool.com/post.3100811.html</link>
        <description><![CDATA[<div><strong><font size="4"><span style="COLOR: windowtext"><font size="3">1. Problem Statement for KnockoutTourney</font></span></font></strong></div>
<div><strong><span style="COLOR: blue">Problem Statement</span></strong></div>
<div><span style="FONT-SIZE: 9pt">You have just entered a knockout tournament with N competitors. The tournament is structured as follows: at the start, the competitors are written down in a list. Adjacent competitors in the list are then paired off, starting from the first competitor on the list, and each pair plays a match (competitor 1 plays against 2, 3 plays against 4, etc.). The losers of each match are eliminated and their names are crossed off the list, while the winners progress to the next round. If there are an odd number of competitors in a round, then the last competitor in the list advances to the next round automatically, without having to play a match. This process then repeats with the new list of competitors, until only a single competitor remains, who is declared the winner. Note that the ordering of the competitors is preserved between rounds.</span></div>
<div><span style="FONT-SIZE: 9pt">Your arch-rival has also entered the tournament and you want to know when you might end up playing against him. Your position in the list for the first round is you and your rival's position is rival (both indexed from 1). Assuming that both you and your rival win all the matches before you play each other, return the number of the round in which you will meet (counting the rounds from 1).</span></div>
<div><strong><span style="COLOR: blue">Definition</span></strong></div>
<div><span style="FONT-SIZE: 9pt">Class:KnockoutTourney</span></div>
<div><span style="FONT-SIZE: 9pt">Method: meetRival</span></div>
<div><span style="FONT-SIZE: 9pt">Parameters:int, int, int</span></div>
<div><span style="FONT-SIZE: 9pt">Returns:int</span></div>
<div><span style="FONT-SIZE: 9pt">Method signature:int meetRival(int N, int you, int rival)</span></div>
<div><span style="FONT-SIZE: 9pt">(be sure your method is public)</span></div>
<div><strong><span style="COLOR: blue">Constraints</span></strong></div>
<div><span style="FONT-SIZE: 9pt">-<strong>N</strong> will be between 2 and 100000, inclusive.</span></div>
<div><span style="FONT-SIZE: 9pt">-<strong>you</strong> and <strong>rival</strong> will each be between 1 and <strong>N</strong>, inclusive.</span></div>
<div><span style="FONT-SIZE: 9pt">-<strong>you</strong> and <strong>rival</strong> will be distinct.</span></div>
<div><strong><span style="COLOR: blue">Examples</span></strong></div>
<div><span style="FONT-SIZE: 9pt">0)</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">16</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">1</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">2</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">Returns: 1</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">This is a 4 round tournament, with 16 players, so every player plays a match in every round. You are paired with your rival in the first round.</span></div>
<div><span style="FONT-SIZE: 9pt">1)</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">8</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">9</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Returns: 4</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">Despite being adjacent in the list, you are not paired with your rival until the final round.</span></div>
<div><span style="FONT-SIZE: 9pt">2)</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1000</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">20</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">31</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">Returns: 4</span></div>
<div><span style="FONT-SIZE: 9pt">3)</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">65536</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">1000</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">35000</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">Returns: 16</span></div>
<div><span style="FONT-SIZE: 9pt">4)</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">60000</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">101</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">891</span></div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">Returns: 10</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt">This problem statement is the exclusive and proprietary property of TopCoder, Inc. Any unauthorized use or reproduction of this information without the prior written consent of TopCoder, Inc. is strictly prohibited. (c)2006, TopCoder, Inc. All rights reserved.</span></div>
<div>&nbsp;</div>
<div><strong><font size="4"><span style="COLOR: windowtext"><font size="3">2. Problem Analysis for KnockoutTourney</font></span></font></strong></div>
<div><span style="FONT-SIZE: 9pt">From the describing of the problem, we know that the process of the competition is as fallows:</span></div>
<div><strong><span style="FONT-SIZE: 9pt">Step one:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img alt="" border="0" src="http://node1.foto.ycstatic.com/200812/01/e/27303390.jpg" /></span></strong></div>
<div align="center"><strong><span style="FONT-SIZE: 9pt">Graph one</span></strong></div>
<div><strong><span style="FONT-SIZE: 9pt">Step two:</span></strong></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The first round, the competition is as the graph above. Then, the second round, the winners of the first round become the competitors of the second round, and as the first round, adjacent competitors in the list are then paired off, starting from the first competitor on the list, and each pair plays a match (competitor 1 plays against 2, 3 plays against 4, etc.)</span></div>
<div>&nbsp;</div>
<div style="TEXT-INDENT: 21pt"><span style="FONT-SIZE: 9pt">&hellip; and so go on.</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The key of this problem is that you should note that the ordering of the competitors is preserved between rounds. Without this condition, we can&rsquo;t compute the result.</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; We find that two competitors are adjacent when they play against each other, furthermore, the index of the bigger one in the list of the two competitors is an even number. So, if you and your arch-rival play each other in some round, firstly, you are adjacent each other, secondly, the bigger index of you in the list is an even number. Now you should understand if <strong>you+1</strong> is equal to <strong>rival</strong> and<strong> rival</strong> is an even number, or <strong>rival+1</strong> is equal to <strong>you</strong> and<strong> you</strong> is an even number, then you will meet your arch-rival.</span></div>
<div>&nbsp;</div>
<div><strong><font size="4"><span style="COLOR: windowtext"><font size="3">3. Source Code for KnockoutTourney</font></span></font></strong></div>
<div><span style="FONT-SIZE: 9pt">#include &lt;iostream&gt;</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt">using namespace std ;</span></div>
<div>&nbsp;</div>
<div><span style="FONT-SIZE: 9pt">class KnockoutTourney</span></div>
<div><span style="FONT-SIZE: 9pt">{</span></div>
<div><span style="FONT-SIZE: 9pt">public:</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int meetRival(int N, int you, int rival)</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int round = 0 ;</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while (true)</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( (you+1 == rival &amp;&amp; 0 == rival%2) ||</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (rival+1 == you &amp;&amp; 0 == you%2) )</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ++ round ;</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; you = (you+1) / 2 ;</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rival = (rival+1) / 2 ;</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; round ++ ;</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0 ;</span></div>
<div><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="FONT-SIZE: 9pt">protected:</span></div>
<div><span style="FONT-SIZE: 9pt">private:</span></div>
<div><span style="FONT-SIZE: 9pt">};</span></div>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3100811.html</guid>
        <pubDate>Mon, 01 Dec 2008 04:12:00 GMT</pubDate>
<category>simple</category>

        <category>maths</category>
      </item>

      <item>
        <title>UOML打破微软垄断 成中国软件业首个国际标准</title>
        <link>http://princetonboy.ycool.com/post.3090314.html</link>
        <description><![CDATA[<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">长久以来被微软等跨国公司所垄断的文档信息产业</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">即将被中国人自己制定的软件标准所打破</span><span style="COLOR: #333333">. </span><span style="COLOR: #333333">昨日</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">中国电子工业标准化技术协会</span><span style="COLOR: #333333">(</span><span style="COLOR: #333333">下称</span><span style="COLOR: #333333">&ldquo;</span><span style="COLOR: #333333">中电标协</span><span style="COLOR: #333333">&rdquo;</span><span style="COLOR: #333333">)</span><span style="COLOR: #333333">宣布</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">由电子文档读写接口标准</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">已经被结构化信息标准促进组织</span><span style="COLOR: #333333">OASIS</span><span style="COLOR: #333333">批准为国际标准</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">成为中国软件行业第一个国际标准</span><span style="COLOR: #333333">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: #333333">51</span><span style="COLOR: #333333">成员赞成</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">是非结构化操作置标语言的缩写</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">它定义了电子文档的读写接口标准</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">即让不同格式的文档能够实现互相读写</span><span style="COLOR: #333333">. </span><span style="COLOR: #333333">包括微软的</span><span style="COLOR: #333333">Word</span><span style="COLOR: #333333">、</span><span style="COLOR: #333333">Excel</span><span style="COLOR: #333333">等文档、金山的文档、</span><span style="COLOR: #333333">Adobe</span><span style="COLOR: #333333">公司的</span><span style="COLOR: #333333">PDF</span><span style="COLOR: #333333">文档</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">以及各种各样的网上电子书格式</span><span style="COLOR: #333333">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">中国工程院院士倪光南认为</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">标准对中国软件产业在文档领域占据一定话语权起着重要作用</span><span style="COLOR: #333333">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">据中电标协负责人表示</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">电子文档无法互联互通的问题已经成为一个世界性的问题</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">目前世界上有</span><span style="COLOR: #333333">1</span><span style="COLOR: #333333">万多种文档格式</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">常用文档格式有</span><span style="COLOR: #333333">300</span><span style="COLOR: #333333">多种</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">彼此的兼容性很差</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">不同电子文档之间的数据无法交换</span><span style="COLOR: #333333">. </span><span style="COLOR: #333333">当文档编辑完成</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">进入流转和分发环节时</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">不同格式的文档相互无法打开浏览</span><span style="COLOR: #333333">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">此次投票赞成</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">成为国际标准的有国际上</span><span style="COLOR: #333333">51</span><span style="COLOR: #333333">家企业、用户与学术机构</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">如谷歌、惠普、富士通等</span><span style="COLOR: #333333">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: #333333">产业化之路</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">随着</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">标准的确立</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">中国软件企业将在年产值达数百亿美元的文档产业中占领一个重要制高点</span><span style="COLOR: #333333">. </span><span style="COLOR: #333333">书生、汉王、红旗</span><span style="COLOR: #333333">2000</span><span style="COLOR: #333333">、紫光等公司支持</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">标准的软件产品及应用解决方案已经推出</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">并已开始在国内重点行业试点应用</span><span style="COLOR: #333333">. </span><span style="COLOR: #333333">工业和信息化部科技司相关负责人表示</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">工业和信息化部将在政府采购及其他公共财政资金采购中</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">制订优先采购符合</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">标准的产品的政策</span><span style="COLOR: #333333">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">中电标协方面表示</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">下一步除了加快产业化外</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">正准备在工业和信息化部科技司的领导下</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">将标准提交给另一标准化组织</span><span style="COLOR: #333333">ISO</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">申请成为</span><span style="COLOR: #333333">ISO</span><span style="COLOR: #333333">国际标准</span><span style="COLOR: #333333">.</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: #333333">打破微软垄断</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">不过</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">微软所推广的</span><span style="COLOR: #333333">MS Office</span><span style="COLOR: #333333">软件在全球文档格式领域占强势地位</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">所以目前微软却对中国人制定的软件标准</span><span style="COLOR: #333333">---UOML</span><span style="COLOR: #333333">深怀</span><span style="COLOR: #333333">&ldquo;</span><span style="COLOR: #333333">敌意</span><span style="COLOR: #333333">&rdquo;</span><span style="COLOR: #333333">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">中电标协文档库技术标准工作委员会</span><span style="COLOR: #333333">(</span><span style="COLOR: #333333">下称</span><span style="COLOR: #333333">&ldquo;</span><span style="COLOR: #333333">文标委</span><span style="COLOR: #333333">&rdquo;</span><span style="COLOR: #333333">)</span><span style="COLOR: #333333">主任王东临透露</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">微软也是</span><span style="COLOR: #333333">OASIS</span><span style="COLOR: #333333">成员之一</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">但是由于</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">标准能够打破微软的垄断</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">所以微软并不赞成</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">标准成为国际标准</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">投票中微软投了</span><span style="COLOR: #333333">&ldquo;</span><span style="COLOR: #333333">弃权票</span><span style="COLOR: #333333">&rdquo;</span><span style="COLOR: #333333">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">文档是使用最普遍的信息资源</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">因而文档标准是信息领域的一个关键性标准</span><span style="COLOR: #333333">. </span><span style="COLOR: #333333">自上世纪</span><span style="COLOR: #333333">90</span><span style="COLOR: #333333">年代以来</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">微软</span><span style="COLOR: #333333">MS Office</span><span style="COLOR: #333333">软件垄断了市场</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">由于缺乏强制性的标准</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">用户只得依赖微软的软件</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">而并没有真正掌握文档信息的控制权</span><span style="COLOR: #333333">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">事实上</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">微软的</span><span style="COLOR: #333333">Word</span><span style="COLOR: #333333">文件</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">用微软自己的</span><span style="COLOR: #333333">Excel</span><span style="COLOR: #333333">都不能打开</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">导致文档信息被特定软件所垄断</span><span style="COLOR: #333333">. </span><span style="COLOR: #333333">这就产生了很多严重的后果</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">例如用户被微软等垄断厂商锁定</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">市场缺乏自由竞争</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">文档资源难以被重复利用等</span><span style="COLOR: #333333">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">倪光南认为</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">目前的文档格式标准是微软主导的</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">由于该标准不开放</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">对于政府部门来说</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">在使用时还会涉及到信息安全问题</span><span style="COLOR: #333333">. </span><span style="COLOR: #333333">所以</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">目前的</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">标准能够打破垄断</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">保证中国对信息资源的控制权</span><span style="COLOR: #333333">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: #333333">王东临介绍到</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">虽然微软目前仍然不支持</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">标准</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">不过微软公司的</span><span style="COLOR: #333333">MS Office</span><span style="COLOR: #333333">文档可以转化为支持</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">标准的文档</span><span style="COLOR: #333333">. </span><span style="COLOR: #333333">不论哪种软件</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">只要支持</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">标准</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">就能够打开任何一个</span><span style="COLOR: #333333">UOML</span><span style="COLOR: #333333">文档</span><span style="COLOR: #333333">,</span><span style="COLOR: #333333">解决目前电子文档不能实现互联互通的尴尬现状</span><span style="COLOR: #333333">.</span></div>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3090314.html</guid>
        <pubDate>Tue, 11 Nov 2008 12:11:07 GMT</pubDate>
<category>uoml</category>
      </item>

      <item>
        <title>SRM423 Division II</title>
        <link>http://princetonboy.ycool.com/post.3084259.html</link>
        <description><![CDATA[<div><span style="COLOR: blue">#include &lt;iostream&gt;</span></div>
<div><span style="COLOR: blue">#include &lt;vector&gt;</span></div>
<div><span style="COLOR: blue">#include &lt;string&gt;</span></div>
<div><span style="COLOR: blue">#include &lt;cmath&gt;</span></div>
<div><span style="COLOR: blue">#include &lt;algorithm&gt;</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">using namespace std ;</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: green">// 500</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">const int MAXLEN = 51 ;</span></div>
<div><span style="COLOR: blue">#define min(a,b) (((a) &lt; (b)) ? (a) : (b))</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">class TheTower</span></div>
<div><span style="COLOR: blue">{</span></div>
<div><span style="COLOR: blue">public:</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vector &lt;int&gt; count(vector &lt;int&gt; x, vector &lt;int&gt; y)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int i , j ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int val[MAXLEN] ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vector &lt;int&gt; rx , ry ;</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int m = x.size() ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vector &lt;int&gt; res(m,INT_MAX) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; memset(val,0,sizeof(val)) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: green">// </span><span style="COLOR: green">所有可能的摆放位置</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i = 0 ; i &lt; m ; i ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (j = 0 ; j &lt; m ; j ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rx.push_back(x[i]) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ry.push_back(y[j]) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int n = rx.size() ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i = 0 ; i &lt; n ; i ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: green">// </span><span style="COLOR: green">对于每一个摆放位置</span><span style="COLOR: green">,</span><span style="COLOR: green">求出</span><span style="COLOR: green">1-m</span><span style="COLOR: green">个</span><span style="COLOR: green">checker</span><span style="COLOR: green">重叠的距离和</span></div>
<div><span style="COLOR: green">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Begin</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (j = 0 ; j &lt; m ; j ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; val[j] = abs(rx[i]-x[j]) + abs(ry[i]-y[j]) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sort(val,val+m) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (j = 1 ; j &lt; m ; j ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; val[j] += val[j-1] ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: green">// End</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: green">// </span><span style="COLOR: green">与当前已经求出的最小距离比较</span><span style="COLOR: green">,</span><span style="COLOR: green">求出所有摆放位置中的最小距离</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (j = 0 ; j &lt; m ; j ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res[j] = min(res[j],val[j]) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return res ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">};</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: green">// 250 </span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">class TheSimpleGame</span></div>
<div><span style="COLOR: blue">{</span></div>
<div><span style="COLOR: blue">public:</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int count(int n, vector &lt;int&gt; x, vector &lt;int&gt; y)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int cnt = 0 ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int m = x.size() ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="COLOR: green">// </span><span style="COLOR: green">把板分成</span><span style="COLOR: green">&quot;</span><span style="COLOR: green">田</span><span style="COLOR: green">&quot;</span><span style="COLOR: green">字格</span><span style="COLOR: green">,</span><span style="COLOR: green">该</span><span style="COLOR: green">checker</span><span style="COLOR: green">在哪个格子中</span><span style="COLOR: green">,</span><span style="COLOR: green">就向相应的角落移动</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int i = 0 ; i &lt; m ; i ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int X = n / x[i] ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int Y = n / y[i] ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (X &gt;= 2 &amp;&amp; Y &gt;= 2 )</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cnt += (x[i] - 1) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cnt += (y[i] - 1) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (X &gt;= 2 &amp;&amp; Y &gt;= 1)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cnt += (x[i] - 1) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cnt += (n - y[i]) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (X &gt;= 1 &amp;&amp; Y &gt;= 2)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cnt += (n - x[i]) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cnt += (y[i] - 1) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (X &gt;= 1 &amp;&amp; Y &gt;= 1)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cnt += (n - x[i]) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cnt += (n - y[i]) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return cnt ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">};</span></div>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3084259.html</guid>
        <pubDate>Fri, 31 Oct 2008 11:10:05 GMT</pubDate>
<category>division ii</category>

        <category>srm423</category>
      </item>

      <item>
        <title>砝码称重</title>
        <link>http://princetonboy.ycool.com/post.3078361.html</link>
        <description><![CDATA[<div style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt"><strong><span style="COLOR: blue">一.<span style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </span></span></strong><strong><span style="COLOR: blue">问题描述</span></strong></div>
<div style="MARGIN: 0cm 0cm 0pt 19.5pt"><span style="COLOR: blue">设有</span><span style="COLOR: blue">1g</span><span style="COLOR: blue">, 2g, 3g, 5g, 10g, 20g</span><span style="COLOR: blue">的砝码各若干枚</span><span style="COLOR: blue">(</span><span style="COLOR: blue">其总重小于等于</span><span style="COLOR: blue">1000),</span><span style="COLOR: blue">要求</span><span style="COLOR: blue">:</span></div>
<div><span style="COLOR: blue">输入</span><span style="COLOR: blue">:</span></div>
<div style="MARGIN: 0cm 0cm 0pt 19.5pt"><span style="COLOR: blue">a1&nbsp;&nbsp;&nbsp; a2&nbsp;&nbsp;&nbsp; a3&nbsp;&nbsp;&nbsp; a4&nbsp;&nbsp;&nbsp; a5&nbsp;&nbsp;&nbsp; a6 (</span><span style="COLOR: blue">表示</span><span style="COLOR: blue">1g</span><span style="COLOR: blue">砝码有</span><span style="COLOR: blue">a1</span><span style="COLOR: blue">个</span><span style="COLOR: blue">,2g</span><span style="COLOR: blue">砝码有</span><span style="COLOR: blue">a2</span><span style="COLOR: blue">个</span><span style="COLOR: blue">,&hellip;,20g</span><span style="COLOR: blue">砝码有</span><span style="COLOR: blue">a6</span><span style="COLOR: blue">个</span><span style="COLOR: blue">)</span></div>
<div><span style="COLOR: blue">输出</span><span style="COLOR: blue">:</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Total=N (N</span><span style="COLOR: blue">表示用这些砝码能称出的不同重量的个数</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但不包括一个砝码也不用的情况</span><span style="COLOR: blue">.)</span></div>
<div><span style="COLOR: blue">输入样例</span><span style="COLOR: blue">:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0</span></div>
<div><span style="COLOR: blue">输出样例</span><span style="COLOR: blue">:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Total=3, </span><span style="COLOR: blue">表示可以称出</span><span style="COLOR: blue">1g</span><span style="COLOR: blue">, 2g, 3g</span><span style="COLOR: blue">三种不同的重量</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt"><strong><span style="COLOR: blue">二.<span style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </span></span></strong><strong><span style="COLOR: blue">问题分析</span></strong></div>
<div><span style="COLOR: blue">设</span></div>
<div><span style="COLOR: blue">const int TOLVAL = 1000 ; </span><span style="COLOR: green">// </span><span style="COLOR: green">砝码的最大总重量</span></div>
<div><span style="COLOR: blue">const int num[] = {1,2,3,5,10,20} ; </span><span style="COLOR: green">&nbsp;// </span><span style="COLOR: green">砝码的重量序列</span></div>
<div><span style="COLOR: blue">int a[6] ; </span><span style="COLOR: green">&nbsp;// 6</span><span style="COLOR: green">种砝码的个数</span></div>
<div><span style="COLOR: blue">bool visited[TOLVAL+1] ;&nbsp;</span><span style="COLOR: green">// </span><span style="COLOR: green">重量的访问标志序列</span><span style="COLOR: green">,</span><span style="COLOR: green">防止重复记录</span></div>
<div><span style="COLOR: blue">int no[TOLVAL+1] ;&nbsp;</span><span style="COLOR: green">// no[0] &ndash; </span><span style="COLOR: green">不同的重量数</span><span style="COLOR: green">; no[j] &ndash; </span><span style="COLOR: green">第</span><span style="COLOR: green">j</span><span style="COLOR: green">种重量</span><span style="COLOR: green">(</span><span style="COLOR: green">1</span><span style="COLOR: green">&le;</span><span style="COLOR: green">j</span><span style="COLOR: green">&le;第</span><span style="COLOR: green">i</span><span style="COLOR: green">阶段的</span><span style="COLOR: green">no[0]</span><span style="COLOR: green">值</span><span style="COLOR: green">)</span></div>
<div><span style="COLOR: blue">int i, j, k, total ;</span><span style="COLOR: green">&nbsp;// total &ndash; </span><span style="COLOR: green">目前称出的重量</span></div>
<div>&nbsp;</div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">我们按照第</span><span style="COLOR: blue">1</span><span style="COLOR: blue">种砝码</span><span style="COLOR: blue">,</span><span style="COLOR: blue">第</span><span style="COLOR: blue">2</span><span style="COLOR: blue">种砝码</span><span style="COLOR: blue">,&hellip;,</span><span style="COLOR: blue">第</span><span style="COLOR: blue">6</span><span style="COLOR: blue">种砝码的顺序分析</span><span style="COLOR: blue">. </span><span style="COLOR: blue">在分析第</span><span style="COLOR: blue">i</span><span style="COLOR: blue">种砝码的放置方案时</span><span style="COLOR: blue">,</span><span style="COLOR: blue">依次在当前阶段</span><span style="COLOR: blue">i</span><span style="COLOR: blue">下的现有不同重量的基础上</span><span style="COLOR: blue">,</span><span style="COLOR: blue">放</span><span style="COLOR: blue">1</span><span style="COLOR: blue">块</span><span style="COLOR: blue">, 2</span><span style="COLOR: blue">块</span><span style="COLOR: blue">,&hellip;, a[i]</span><span style="COLOR: blue">块</span><span style="COLOR: blue">,</span><span style="COLOR: blue">产生新的不同重量</span><span style="COLOR: blue">,</span><span style="COLOR: blue">和阶段</span><span style="COLOR: blue">i</span><span style="COLOR: blue">下的现有重量一并作为下一个阶段</span><span style="COLOR: blue">i+1</span><span style="COLOR: blue">的现有不同重量</span><span style="COLOR: blue">.</span></div>
<div><span style="COLOR: red">no[no[0]+1] = total | total = </span><span style="COLOR: fuchsia">cur</span><span style="COLOR: red"> + k*num[i] , visited[total] = false, </span><span style="COLOR: fuchsia">cur=</span><span style="COLOR: fuchsia">第</span><span style="COLOR: fuchsia">i</span><span style="COLOR: fuchsia">阶段的</span><span style="COLOR: fuchsia">no[0]</span><span style="COLOR: fuchsia">值</span><span style="COLOR: fuchsia">,</span><span style="COLOR: red">1</span><span style="COLOR: red">&le;</span><span style="COLOR: red">i</span><span style="COLOR: red">&le;</span><span style="COLOR: red">no[0], 1</span><span style="COLOR: red">&le;</span><span style="COLOR: red">j</span><span style="COLOR: red">&le;</span><span style="COLOR: red">cur, 1</span><span style="COLOR: red">&le;</span><span style="COLOR: red">k</span><span style="COLOR: red">&le;</span><span style="COLOR: red">a[i]</span></div>
<div><span style="COLOR: blue">阶段</span><span style="COLOR: blue">i : </span><span style="COLOR: blue">分析第</span><span style="COLOR: blue">i</span><span style="COLOR: blue">种砝码</span><span style="COLOR: blue">(</span><span style="COLOR: blue">1</span><span style="COLOR: blue">&le;</span><span style="COLOR: blue">i</span><span style="COLOR: blue">&le;</span><span style="COLOR: blue">6</span><span style="COLOR: blue">) ;</span></div>
<div><span style="COLOR: blue">状态</span><span style="COLOR: blue">j : </span><span style="COLOR: blue">枚举现有的不同重量</span><span style="COLOR: blue">(</span><span style="COLOR: blue">1</span><span style="COLOR: blue">&le;</span><span style="COLOR: blue">j</span><span style="COLOR: blue">&le;第</span><span style="COLOR: blue">i</span><span style="COLOR: blue">阶段的</span><span style="COLOR: blue">no[0]</span><span style="COLOR: blue">值</span><span style="COLOR: blue">) ;</span></div>
<div><span style="COLOR: blue">决策</span><span style="COLOR: blue">k : </span><span style="COLOR: blue">在现有重量的基础上放</span><span style="COLOR: blue">k</span><span style="COLOR: blue">块第</span><span style="COLOR: blue">i</span><span style="COLOR: blue">种砝码</span><span style="COLOR: blue">,</span><span style="COLOR: blue">产生重量</span><span style="COLOR: blue">cur + k*num[i](</span><span style="COLOR: blue"> 1</span><span style="COLOR: blue">&le;</span><span style="COLOR: blue">k</span><span style="COLOR: blue">&le;</span><span style="COLOR: blue">a[i]</span><span style="COLOR: blue">) ;</span></div>
<div>&nbsp;</div>
<div style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt"><strong><span style="COLOR: blue">三.<span style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </span></span></strong><strong><span style="COLOR: blue">程序源代码</span></strong></div>
<div><span style="COLOR: blue">#include &lt;iostream&gt;</span></div>
<div><span style="COLOR: blue">#include &lt;vector&gt;</span></div>
<div><span style="COLOR: blue">#include &lt;string&gt;</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">using namespace std;</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">const int TOLVAL = 1000 ;&nbsp;</span><span style="COLOR: green">// </span><span style="COLOR: green">砝码的最大总重量</span></div>
<div><span style="COLOR: blue">const int num[] = {1,2,3,5,10,20} ;&nbsp;</span><span style="COLOR: green">// </span><span style="COLOR: green">砝码的重量序列</span></div>
<div><span style="COLOR: blue">int a[6] ; </span><span style="COLOR: green">&nbsp;// 6</span><span style="COLOR: green">种砝码的个数</span></div>
<div><span style="COLOR: blue">bool visited[TOLVAL+1] ;&nbsp;</span><span style="COLOR: green">// </span><span style="COLOR: green">重量的访问标志序列</span><span style="COLOR: green">,</span><span style="COLOR: green">防止重复记录</span></div>
<div><span style="COLOR: blue">int no[TOLVAL+1] ;&nbsp;</span><span style="COLOR: green">// no[0] - </span><span style="COLOR: green">不同的重量数</span><span style="COLOR: green">; no[j] - </span><span style="COLOR: green">第</span><span style="COLOR: green">j</span><span style="COLOR: green">种重量</span><span style="COLOR: green">(1</span><span style="COLOR: green">&le;</span><span style="COLOR: green">j</span><span style="COLOR: green">&le;第</span><span style="COLOR: green">i</span><span style="COLOR: green">阶段的</span><span style="COLOR: green">no[0]</span><span style="COLOR: green">值</span><span style="COLOR: green">)</span></div>
<div><span style="COLOR: blue">int i, j, k, total ; </span><span style="COLOR: green">&nbsp;// total - </span><span style="COLOR: green">目前称出的重量</span></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">int main()</span></div>
<div><span style="COLOR: blue">{</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int i , j ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while (true)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; memset(visited,false,sizeof(visited)) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(i = 0 ; i &lt; 6 ; i ++)&nbsp;</span><span style="COLOR: green">// </span><span style="COLOR: green">输入</span><span style="COLOR: green">6</span><span style="COLOR: green">种砝码的个数</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cin &gt;&gt; a[i] ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no[0] = 1 , no[1] = 0 ;&nbsp;</span><span style="COLOR: green">// </span><span style="COLOR: green">产生第</span><span style="COLOR: green">1</span><span style="COLOR: green">种重量</span><span style="COLOR: green">0</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i = 0 ; i &lt; 6 ; i ++)&nbsp;</span><span style="COLOR: green">// </span><span style="COLOR: green">阶段</span><span style="COLOR: green">: </span><span style="COLOR: green">分析第</span><span style="COLOR: green">i</span><span style="COLOR: green">种砝码</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int cur = no[0] ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (j = 1 ; j &lt;= cur ; j ++) </span><span style="COLOR: green">&nbsp;// </span><span style="COLOR: green">状态</span><span style="COLOR: green">: </span><span style="COLOR: green">枚举当前阶段</span><span style="COLOR: green">i</span><span style="COLOR: green">下的所有不同重量</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (k = 1 ; k &lt;= a[i] ; k ++)&nbsp;</span><span style="COLOR: green">// </span><span style="COLOR: green">决策</span><span style="COLOR: green">: </span><span style="COLOR: green">在现有重量的基础上放</span><span style="COLOR: green">k</span><span style="COLOR: green">块第</span><span style="COLOR: green">i</span><span style="COLOR: green">种砝码</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; total = no[j] + k*num[i] ; </span><span style="COLOR: green">&nbsp;// </span><span style="COLOR: green">产生的重量</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!visited[total])&nbsp;</span><span style="COLOR: green">// </span><span style="COLOR: green">若该重量未产生过</span><span style="COLOR: green">,</span><span style="COLOR: green">则设访问标志</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; visited[total] = true ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no[0] ++ ; </span><span style="COLOR: green">&nbsp;// </span><span style="COLOR: green">新重量进入</span><span style="COLOR: green">no</span><span style="COLOR: green">序列</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no[no[0]] = total ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; no[0]-1 &lt;&lt; endl ; </span><span style="COLOR: green">&nbsp;// </span><span style="COLOR: green">输出不同重量的个数</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0 ;</span></div>
<div><span style="COLOR: blue">}</span></div>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3078361.html</guid>
        <pubDate>Wed, 22 Oct 2008 04:10:24 GMT</pubDate>
<category>dp</category>

        <category>砝码称重</category>
      </item>

      <item>
        <title>SRM422 Division II</title>
        <link>http://princetonboy.ycool.com/post.3078058.html</link>
        <description><![CDATA[<div><span style="COLOR: blue">#include &lt;iostream&gt;</span></div>
<div><span style="COLOR: blue">#include &lt;vector&gt;</span></div>
<div><span style="COLOR: blue">#include &lt;string&gt;</span></div>
<div><span style="COLOR: blue">#include &lt;cmath&gt;</span></div>
<div><span style="COLOR: blue">using namespace std ;</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: green">// 1000</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">class BirthdayCake</span></div>
<div><span style="COLOR: blue">{</span></div>
<div><span style="COLOR: blue">public:</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int howManyFriends(vector &lt;string&gt; availableFruits, vector &lt;string&gt; friendsDislikings, int K)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">};</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: green">// 500 </span></div>
<div><span style="COLOR: green">// simple math : Combinatorics + Probability</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">const int M = 18 ;</span></div>
<div><span style="COLOR: blue">const int F = 100 ;</span></div>
<div><span style="COLOR: blue">const int m[] = {2,3,5,7,11,13,17} ;</span></div>
<div><span style="COLOR: blue">const int c[] = {153,816,8568,31824,31824,8568,18} ;</span></div>
<div><span style="COLOR: blue">long double ra[7] ,rb[7] ;</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">class PrimeSoccer</span></div>
<div><span style="COLOR: blue">{</span></div>
<div><span style="COLOR: blue">public:</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double getProbability(int skillOfTeamA, int skillOfTeamB)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int i , j ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long double RA = 0.0 , RB = 0.0 , RC = 0.0 ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i = 0 ; i &lt; 7 ; i ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ra[i] = c[i]*pow((double)(skillOfTeamA),(double)(m[i]))*pow((double)((F-skillOfTeamA)),(double)(M-m[i])) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RA += ra[i] ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i = 0 ; i &lt; 7 ; i ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rb[i] = c[i]*pow((double)(skillOfTeamB),(double)(m[i]))*pow((double)((F-skillOfTeamB)),(double)(M-m[i])) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RB += rb[i] ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i = 0 ; i &lt; 7 ; i ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (j = 0 ; j &lt; 7 ; j ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RC += ra[i]*rb[j] ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ( (RA + RB)/pow((double)(F),(double)(18)) - RC/pow((double)(F),(double)(36)) ) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">};</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: green">// 250</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">class MultiNumber</span></div>
<div><span style="COLOR: blue">{</span></div>
<div><span style="COLOR: blue">public:</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string sovle(int n)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string s = &quot;&quot; ;</span></div>
<div>&nbsp;</div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while (n &gt; 0)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int t = n % 10 ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; n /= 10 ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s += (t+'0') ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reverse(s.begin(),s.end()) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return s ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string check(int number)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int i , j ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string str , res ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (number &lt; 10) return &quot;NO&quot; ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; str = sovle(number) ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i = 0 ; i &lt; str.size()-1 ; i ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int t = 1 , p = 1 ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (j = 0 ; j &lt;= i ; j ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t *= (str[j]-'0') ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for ( ; j &lt; str.size() ; j ++)</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p *= (str[j]-'0') ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (t == p) res = &quot;YES&quot; ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (res == &quot;&quot;) return &quot;NO&quot; ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else return &quot;YES&quot; ;</span></div>
<div><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></div>
<div><span style="COLOR: blue">};</span></div>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3078058.html</guid>
        <pubDate>Tue, 21 Oct 2008 15:10:23 GMT</pubDate>
<category>division ii</category>

        <category>srm422</category>
      </item>

      <item>
        <title>玩扑克牌与编程</title>
        <link>http://princetonboy.ycool.com/post.3077696.html</link>
        <description><![CDATA[<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">(<font face="Arial">转载</font>)我以前不是做软件开发的</span><span style="COLOR: blue">. </span><span style="COLOR: blue">在加入</span><span style="COLOR: blue">ThoughtWorks</span><span style="COLOR: blue">两年之前</span><span style="COLOR: blue">,</span><span style="COLOR: blue">我主要靠玩扑克为生</span><span style="COLOR: blue">. </span><span style="COLOR: blue">当然</span><span style="COLOR: blue">,</span><span style="COLOR: blue">如果你曾跟我打听过我前臂上的纹身</span><span style="COLOR: blue">,</span><span style="COLOR: blue">那你肯定已然听过我的故事了</span><span style="COLOR: blue">. </span><span style="COLOR: blue">要是还没有</span><span style="COLOR: blue">,</span><span style="COLOR: blue">等下次我们一起喝一杯时</span><span style="COLOR: blue">,</span><span style="COLOR: blue">我可以讲给你听</span><span style="COLOR: blue">.</span></div>
<div><strong>&nbsp;</strong></div>
<div><strong><span style="COLOR: blue">学习</span></strong></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">我学习打扑克和学习软件开发的方式是一样的</span><span style="COLOR: blue">: </span><span style="COLOR: blue">尽可能多读书</span><span style="COLOR: blue">. </span><span style="COLOR: blue">我用两年的时间</span><span style="COLOR: blue">,</span><span style="COLOR: blue">读完了所能找到的每一本有关扑克的书</span><span style="COLOR: blue">. </span><span style="COLOR: blue">最后竟至</span><span style="COLOR: blue">39</span><span style="COLOR: blue">本之多</span><span style="COLOR: blue">. </span><span style="COLOR: blue">编程亦如是</span><span style="COLOR: blue">. </span><span style="COLOR: blue">此刻</span><span style="COLOR: blue">,</span><span style="COLOR: blue">我面前仍然摆着接下来要读的</span><span style="COLOR: blue">5</span><span style="COLOR: blue">本书</span><span style="COLOR: blue">; </span><span style="COLOR: blue">而在过去三年</span><span style="COLOR: blue">ThoughtWorks</span><span style="COLOR: blue">的工作中</span><span style="COLOR: blue">,</span><span style="COLOR: blue">我翻烂的书亦不在少数</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">我认为</span><span style="COLOR: blue">,</span><span style="COLOR: blue">无论编程还是玩牌</span><span style="COLOR: blue">,</span><span style="COLOR: blue">阅读书籍、博客与杂志都是要想有所成就的必备条件</span><span style="COLOR: blue">; </span><span style="COLOR: blue">而若要以二者为谋生之业</span><span style="COLOR: blue">,</span><span style="COLOR: blue">仅靠读书却是远远不够的</span><span style="COLOR: blue">. </span><span style="COLOR: red">也许你可以把书本上的一切知识都装入脑中</span><span style="COLOR: red">,</span><span style="COLOR: red">但知道在何时应用何种规则</span><span style="COLOR: red">,</span><span style="COLOR: red">这才是真正高手的标志</span><span style="COLOR: red">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">诚然</span><span style="COLOR: blue">,</span><span style="COLOR: blue">开卷有益</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但总要走过万里路</span><span style="COLOR: blue">,</span><span style="COLOR: blue">方能对应用特定技术的具体环境烂熟于心</span><span style="COLOR: blue">. </span><span style="COLOR: blue">书本不可能把所有情况都囊括一空</span><span style="COLOR: blue">,</span><span style="COLOR: blue">只有通过亲身体会得来的经验</span><span style="COLOR: blue">,</span><span style="COLOR: blue">才能让你在某些状况下为自己或是雇主做出快速而正确的决策</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而这些决策可能价值几千乃至数百万美元</span><span style="COLOR: blue">. </span><span style="COLOR: blue">经验之宝贵</span><span style="COLOR: blue">,</span><span style="COLOR: blue">世间无物可代</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><strong><span style="COLOR: blue">艺术的巅峰</span></strong></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">你可以设计出击败普通扑克玩家的计算机程序</span><span style="COLOR: blue">. </span><span style="COLOR: blue">遵守一些基本规则</span><span style="COLOR: blue">,</span><span style="COLOR: blue">自然就可获胜</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但迄今为止</span><span style="COLOR: blue">,</span><span style="COLOR: blue">还没有任何程序可以击败最好的扑克玩家</span><span style="COLOR: blue">. </span><span style="COLOR: blue">因为扑克技能达到巅峰时</span><span style="COLOR: blue">,</span><span style="COLOR: blue">也就成了一门艺术</span><span style="COLOR: blue">. </span><span style="COLOR: blue">软件开发亦如是</span><span style="COLOR: blue">. </span><span style="COLOR: blue">要想成为一个还行的开发者</span><span style="COLOR: blue">,</span><span style="COLOR: blue">只要遵循一系列最佳实践即可</span><span style="COLOR: blue">. </span><span style="COLOR: blue">如果按照经典参考指南一类的书籍行事</span><span style="COLOR: blue">,</span><span style="COLOR: blue">开发出还不错的应用程序应该不成问题</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而且效果会胜过其他最常见的做法</span><span style="COLOR: blue">. </span><span style="COLOR: blue">有了这么多失败的项目作为前车之鉴</span><span style="COLOR: blue">,</span><span style="COLOR: blue">我相信</span><span style="COLOR: blue">,</span><span style="COLOR: blue">还不错的应用就足以令大多数管理层甘心掏腰包了</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">当然</span><span style="COLOR: blue">,</span><span style="COLOR: blue">有些经理有更高的标准</span><span style="COLOR: blue">. </span><span style="COLOR: blue">在银行、创业公司、医疗系统等领域</span><span style="COLOR: blue">,</span><span style="COLOR: blue">标准则更为严苛</span><span style="COLOR: blue">. &ldquo;</span><span style="COLOR: blue">还不错</span><span style="COLOR: blue">&rdquo;</span><span style="COLOR: blue">自是远远不够</span><span style="COLOR: blue">. </span><span style="COLOR: blue">那些经理会很乐意为最佳选择买单</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他们期待的是远超常人的技能</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但问题在于</span><span style="COLOR: blue">,</span><span style="COLOR: blue">专家级程序员的技能与普通程序员不同</span><span style="COLOR: blue">. </span><span style="COLOR: red">普通程序员知道做事的方式</span><span style="COLOR: red">; </span><span style="COLOR: red">专家知道做事的目的</span><span style="COLOR: red">.</span><span style="COLOR: blue">普通程序员会僵化跟随模式书籍中的指示</span><span style="COLOR: blue">,</span><span style="COLOR: blue">就如遵守参考指南一般</span><span style="COLOR: blue">; </span><span style="COLOR: blue">专家则明白对模式的创新可能会带来指数级的性能改善</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">他们看到的绝非同一个世界</span><span style="COLOR: blue">,</span><span style="COLOR: blue">所以普通程序员很难跟专家对面交流</span><span style="COLOR: blue">. </span><span style="COLOR: blue">做艺术评论家易</span><span style="COLOR: blue">,</span><span style="COLOR: blue">做优秀的艺术评论家难</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><strong><span style="COLOR: blue">决策技能</span></strong></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">在扑克和编程中有一条绝对真理</span><span style="COLOR: blue">: </span><span style="COLOR: blue">几乎没人能像他自我感觉的那么良好</span><span style="COLOR: blue">. </span><span style="COLOR: blue">有自知之明是不错的开始</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但人们依然很难知道自己与专家之间的差距</span><span style="COLOR: blue">. </span><span style="COLOR: blue">程序员接触专家的机会并不多</span><span style="COLOR: blue">,</span><span style="COLOR: blue">也就无法公正评判自己的技能</span><span style="COLOR: blue">. </span><span style="COLOR: blue">在牌桌上</span><span style="COLOR: blue">,</span><span style="COLOR: blue">每个人都是为了锦标而来</span><span style="COLOR: blue">,</span><span style="COLOR: blue">可大多数人都会过高评价自己的牌技</span><span style="COLOR: blue">,</span><span style="COLOR: blue">这总是让我惊讶不已</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">程序员之间亦是如此</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而且大多数人可以获得的信息更少得可怜</span><span style="COLOR: blue">. </span><span style="COLOR: blue">一个从不参加任何大会的技术领导人</span><span style="COLOR: blue">,</span><span style="COLOR: blue">只能跟自己的团队成员一比高下</span><span style="COLOR: blue">. </span><span style="COLOR: blue">当然</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他可能已经很优秀了</span><span style="COLOR: blue">,</span><span style="COLOR: blue">否则也不会成为技术领导</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但如果与整个行业中最出类拔萃的人相比</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他又处于什么位置</span><span style="COLOR: blue">? </span><span style="COLOR: blue">如果觉得在自己的圈子里已经一览众山小了</span><span style="COLOR: blue">,</span><span style="COLOR: blue">那碰到不同意见时</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他又会作何反应</span><span style="COLOR: blue">? </span><span style="COLOR: blue">有些人会视之为学习的契机并为此感到兴奋</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但绝大多数都会对不同意见嗤之以鼻</span><span style="COLOR: blue">.</span></div>
<div>&nbsp;</div>
<div><strong><span style="COLOR: blue">团队协作</span></strong></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">乍看上去</span><span style="COLOR: blue">,</span><span style="COLOR: blue">扑克是一种彼此对抗的游戏</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但事实很少如是</span><span style="COLOR: blue">. </span><span style="COLOR: blue">即使在赌注最小的牌桌上</span><span style="COLOR: blue">,</span><span style="COLOR: blue">通常也至少会有几个人常打交道</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他们不会达成条件一致对付牌桌上的其他人</span><span style="COLOR: blue">---</span><span style="COLOR: blue">他们也不必如此</span><span style="COLOR: blue">. </span><span style="COLOR: blue">大家都明白一条道理</span><span style="COLOR: blue">: </span><span style="COLOR: blue">你不是要去跟牌玩得好的人对着干</span><span style="COLOR: blue">,</span><span style="COLOR: blue">赢他们的钱</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而是要从水平低的人身上赚钱</span><span style="COLOR: blue">. </span><span style="COLOR: blue">专业牌手甚至会像一个团队一样协同工作</span><span style="COLOR: blue">. </span><span style="COLOR: blue">有些人彼此利益相关</span><span style="COLOR: blue">,</span><span style="COLOR: blue">故而一人得利则众人均有收益</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他们不仅互相了解</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而且认识很多人</span><span style="COLOR: blue">. </span><span style="COLOR: blue">如果出现一局精彩牌局</span><span style="COLOR: blue">,</span><span style="COLOR: blue">楼层经理会跟他们打招呼</span><span style="COLOR: blue">; </span><span style="COLOR: blue">侍者会为他们的对手调制酒精度高的饮品</span><span style="COLOR: blue">; </span><span style="COLOR: blue">和手</span><span style="COLOR: blue">(</span><span style="COLOR: blue">即发牌者</span><span style="COLOR: blue">)</span><span style="COLOR: blue">会故意</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">犯错</span><span style="COLOR: blue">&rdquo;</span><span style="COLOR: blue">以影响某人心情</span><span style="COLOR: blue">(</span><span style="COLOR: blue">很少有人在心情不好的时候能够打好牌</span><span style="COLOR: blue">). </span><span style="COLOR: blue">每个人都在协同工作</span><span style="COLOR: blue">,</span><span style="COLOR: blue">确保大家都能挣到钱</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">颇为有趣的是</span><span style="COLOR: blue">,</span><span style="COLOR: blue">程序员的情况也与之相似</span><span style="COLOR: blue">. </span><span style="COLOR: blue">很多人都坐在格子里</span><span style="COLOR: blue">,</span><span style="COLOR: blue">完全依赖自己解决问题</span><span style="COLOR: blue">.</span><span style="COLOR: blue">他们往往工作在代码个人独有制模式之下</span><span style="COLOR: blue">. </span><span style="COLOR: blue">我曾亲眼目睹</span><span style="COLOR: blue">,</span><span style="COLOR: blue">在这种程序员交付的应用中</span><span style="COLOR: blue">,</span><span style="COLOR: blue">集成问题一直都是大家的心病</span><span style="COLOR: blue">. </span><span style="COLOR: blue">而更为不幸的是</span><span style="COLOR: blue">,</span><span style="COLOR: blue">集成之痛还只是最小的问题</span><span style="COLOR: blue">. </span><span style="COLOR: blue">假设</span><span style="COLOR: blue">IT</span><span style="COLOR: blue">部门把业务需求锁定为</span><span style="COLOR: blue">500</span><span style="COLOR: blue">页的需求文档</span><span style="COLOR: blue">. </span><span style="COLOR: blue">如果公司决定改变业务方向</span><span style="COLOR: blue">,</span><span style="COLOR: blue">随之而来的系统变更需求将令人痛不欲生</span><span style="COLOR: blue">. </span><span style="COLOR: blue">数以百万计的金钱付诸东流</span><span style="COLOR: blue">,</span><span style="COLOR: blue">因为程序员开发的特性已不再具备业务价值</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而</span><span style="COLOR: blue">IT</span><span style="COLOR: blue">部门还没有找到更好的方式来应对业务变化</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">当然</span><span style="COLOR: blue">,</span><span style="COLOR: blue">情况并非总是如此</span><span style="COLOR: blue">. </span><span style="COLOR: blue">专家懂得协作</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他们会跟其他专家协作</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但也不排斥与经理、客户、业务部门、分析师、质保人员</span><span style="COLOR: blue">,</span><span style="COLOR: blue">以及所有可以为成功贡献力量的人协作</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他们胸怀大局</span><span style="COLOR: blue">:</span><span style="COLOR: red">只有协作</span><span style="COLOR: red">,</span><span style="COLOR: red">才能让每个人有所收获</span><span style="COLOR: red">.</span></div>
<div>&nbsp;</div>
<div><strong><span style="COLOR: blue">度量</span></strong></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">雄心勃勃的牌手常常讨论他们赢了多少手牌</span><span style="COLOR: blue">,</span><span style="COLOR: blue">又输了多少手</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他们讨论最多的还是本该赢但却输掉的那几手牌</span><span style="COLOR: blue">. </span><span style="COLOR: blue">有时人们会犯错误输钱</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但他们一般都不会记得这几手是怎么输掉的</span><span style="COLOR: blue">. </span><span style="COLOR: blue">相反的是</span><span style="COLOR: blue">,</span><span style="COLOR: blue">如果有些牌局只是因为手气不好而输掉</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他们就会记得那一局中的每一处细节</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他们还会在故事中透露对手必然获胜的几率</span><span style="COLOR: blue">,</span><span style="COLOR: blue">来证明自己根本没有胜出的机会</span><span style="COLOR: blue">. </span><span style="COLOR: blue">真正的牌手知道他们输掉过多少手牌</span><span style="COLOR: blue">,</span><span style="COLOR: blue">以及失败的大概几率</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他们懂得度量</span><span style="COLOR: blue">. </span><span style="COLOR: blue">而且专业牌手会专注于重要的度量标准</span><span style="COLOR: blue">. </span><span style="COLOR: blue">你赢了多少手</span><span style="COLOR: blue">,</span><span style="COLOR: blue">输了多少手</span><span style="COLOR: blue">,</span><span style="COLOR: blue">这无关紧要</span><span style="COLOR: blue">; </span><span style="COLOR: blue">重要的是你赢了多少钱</span><span style="COLOR: blue">,</span><span style="COLOR: blue">输了多少钱</span><span style="COLOR: blue">. </span><span style="COLOR: blue">而且</span><span style="COLOR: blue">,</span><span style="COLOR: blue">为你的狗屎运</span><span style="COLOR: blue">(</span><span style="COLOR: blue">译者注</span><span style="COLOR: blue">: bad beat,</span><span style="COLOR: blue">即开局时输家比赢家牌好</span><span style="COLOR: blue">,</span><span style="COLOR: blue">赢的几率更大</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但关键时刻赢家却来了更好的牌</span><span style="COLOR: blue">. </span><span style="COLOR: blue">碰到狗屎运</span><span style="COLOR: blue">---take a bad beat---</span><span style="COLOR: blue">用来形容输家</span><span style="COLOR: blue">,</span><span style="COLOR: blue">来了狗屎运</span><span style="COLOR: blue">---lay a bad beat---</span><span style="COLOR: blue">用来形容赢家</span><span style="COLOR: blue">)</span><span style="COLOR: blue">苦恼实际上等于替你对手的牌运犯愁</span><span style="COLOR: blue">. </span><span style="COLOR: blue">既然你的收入来自于对手的错误</span><span style="COLOR: blue">,</span><span style="COLOR: blue">那你就是在抱怨为什么对手把钱给了你</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">有度量标准是好事</span><span style="COLOR: blue">,</span><span style="COLOR: blue">不过专业人士懂得哪些标准重要</span><span style="COLOR: blue">,</span><span style="COLOR: blue">哪些只会分散注意力</span><span style="COLOR: blue">,</span><span style="COLOR: blue">哪些介于二者之间</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">软件开发也有很多度量标准</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而且有很多标准身上的光环已经远远超出了它们所应有的范围</span><span style="COLOR: blue">. </span><span style="COLOR: blue">例如</span><span style="COLOR: blue">,</span><span style="COLOR: blue">知道代码行数几乎不能带来任何价值</span><span style="COLOR: blue">. </span><span style="COLOR: blue">复杂应用需要相当多的代码</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但这个</span><span style="COLOR: blue">&ldquo;</span><span style="COLOR: blue">相当</span><span style="COLOR: blue">&rdquo;</span><span style="COLOR: blue">到底是多少</span><span style="COLOR: blue">? </span><span style="COLOR: blue">它得依赖于语言、工具及其他因素</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">修复的</span><span style="COLOR: blue">bug</span><span style="COLOR: blue">数量也是个很有趣的话题</span><span style="COLOR: blue">,</span><span style="COLOR: blue">只是略逊于前一个</span><span style="COLOR: blue">. </span><span style="COLOR: blue">为什么人们会在乎修复了多少个</span><span style="COLOR: blue">bug? Bug</span><span style="COLOR: blue">数量也许有其价值</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但是修复的</span><span style="COLOR: blue">bug</span><span style="COLOR: blue">数目并不能为我们带来多少有用信息</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">特性完成率是我自己最喜欢把玩的一个标准</span><span style="COLOR: blue">. </span><span style="COLOR: blue">除非我们使用特性来评估工作量</span><span style="COLOR: blue">,</span><span style="COLOR: blue">否则知道完成了多少特性又有何用</span><span style="COLOR: blue">? </span><span style="COLOR: blue">而且</span><span style="COLOR: blue">,</span><span style="COLOR: blue">如果已经对工作量做出了评估</span><span style="COLOR: blue">,</span><span style="COLOR: blue">那为什么不把剩余工作与已完成工作相比较</span><span style="COLOR: blue">,</span><span style="COLOR: blue">从而得到工作进度呢</span><span style="COLOR: blue">? </span><span style="COLOR: blue">我很难从特性完成率中看到价值所在</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">代码覆盖率让我想起了记录狗屎运</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这项度量是有意义的</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但很多人都没抓住重点</span><span style="COLOR: blue">. </span><span style="COLOR: blue">代码覆盖率低意味着可能有问题存在</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但是代码覆盖率高只能表示你有一个很大的代码覆盖率数值</span><span style="COLOR: blue">. </span><span style="COLOR: red">高代码覆盖率与高质量之间没有必然联系</span><span style="COLOR: red">.</span></div>
<div><strong>&nbsp;</strong></div>
<div><strong><span style="COLOR: blue">注意人</span><span style="COLOR: blue">,</span></strong><strong><span style="COLOR: blue">而不是逻辑</span></strong></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">如果看过有玩牌镜头出现的电影</span><span style="COLOR: blue">,</span><span style="COLOR: blue">你大概听过这样一句话</span><span style="COLOR: blue">: </span><span style="COLOR: blue">你不是在与扑克玩</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而是与人玩</span><span style="COLOR: blue">. </span><span style="COLOR: blue">此言极是</span><span style="COLOR: blue">. </span><span style="COLOR: blue">牌手无疑都是心理学家</span><span style="COLOR: blue">. </span><span style="COLOR: blue">有时你确实需要某些牌</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但拿一手好牌只是赚钱的一部分而已</span><span style="COLOR: blue">. </span><span style="COLOR: blue">一旦有了好牌</span><span style="COLOR: blue">,</span><span style="COLOR: blue">你就需要知道怎样利用好它们</span><span style="COLOR: blue">. </span><span style="COLOR: blue">你是应该加注</span><span style="COLOR: blue">,</span><span style="COLOR: blue">还是先让牌然后加注</span><span style="COLOR: blue">,</span><span style="COLOR: blue">还是彻底让牌</span><span style="COLOR: blue">,</span><span style="COLOR: blue">还是跟进</span><span style="COLOR: blue">? </span><span style="COLOR: blue">这些做法依赖于很多因素</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但关键还是要了解牌桌上的对手</span><span style="COLOR: blue">. </span><span style="COLOR: blue">当你得到一手好牌</span><span style="COLOR: blue">,</span><span style="COLOR: blue">首要目标就是尽可能多地从对手那里赢钱</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而达到这种目的的唯一方式则是想办法让对手给你更多的钱</span><span style="COLOR: blue">. </span><span style="COLOR: blue">了解逻辑可以帮助你赢得几手牌</span><span style="COLOR: blue">,</span><span style="COLOR: blue">了解人则可以帮助你赢钱</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">在交付软件时</span><span style="COLOR: blue">,</span><span style="COLOR: blue">人处于同样重要的地位</span><span style="COLOR: blue">. </span><span style="COLOR: blue">如果软件只是让一切工作起来</span><span style="COLOR: blue">,</span><span style="COLOR: blue">那只要把它变成自动化的工作</span><span style="COLOR: blue">,</span><span style="COLOR: blue">事情就容易得多了</span><span style="COLOR: blue">. </span><span style="COLOR: blue">但软件却远非功能组合这么简单</span><span style="COLOR: blue">. </span><span style="COLOR: blue">在一场高尔夫球比赛中</span><span style="COLOR: blue">,</span><span style="COLOR: blue">人们会卖出软件包</span><span style="COLOR: blue">; </span><span style="COLOR: blue">在全家到迪斯尼免费旅游时</span><span style="COLOR: blue">,</span><span style="COLOR: blue">人们会签下软件服务合同</span><span style="COLOR: blue">; </span><span style="COLOR: blue">为了避免法律纠纷</span><span style="COLOR: blue">,</span><span style="COLOR: blue">人们会履行合同去构建已经毫无用处的软件</span><span style="COLOR: blue">; </span><span style="COLOR: blue">为了超越竞争对手</span><span style="COLOR: blue">,</span><span style="COLOR: blue">人们会使用软件来加快业务响应速度</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">人们使用软件、开发软件、维护软件</span><span style="COLOR: blue">,</span><span style="COLOR: blue">或是在某种程度上依赖软件</span><span style="COLOR: blue">. </span><span style="COLOR: blue">软件开发与这个世界有着千丝万缕的联系</span><span style="COLOR: blue">,</span><span style="COLOR: blue">要把洋洋洒洒的变量组合成简单方程</span><span style="COLOR: blue">,</span><span style="COLOR: blue">生产出高质量的软件</span><span style="COLOR: blue">,</span><span style="COLOR: blue">又与登天何异</span><span style="COLOR: blue">? </span><span style="COLOR: blue">但是</span><span style="COLOR: blue">,</span><span style="COLOR: blue">软件开发高手需要考虑每个人引入的所有已知与未知的变量</span><span style="COLOR: blue">,</span><span style="COLOR: blue">做出他们力所能及的推测</span><span style="COLOR: blue">. </span><span style="COLOR: red">知道应该做什么会让你受益</span><span style="COLOR: red">,</span><span style="COLOR: red">而知道必须做什么所带来的价值却是难以衡量</span><span style="COLOR: red">. </span><span style="COLOR: red">了解逻辑可以帮助你交付应用</span><span style="COLOR: red">,</span><span style="COLOR: red">了解人则可以帮助你交付价值</span><span style="COLOR: red">.</span></div>
<div>&nbsp;</div>
<div><strong><span style="COLOR: blue">在残缺的信息下工作</span></strong></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">有关这点</span><span style="COLOR: blue">,</span><span style="COLOR: blue">刚开始打牌的人处理的非常好</span><span style="COLOR: blue">: </span><span style="COLOR: blue">打好每一手牌</span><span style="COLOR: blue">,</span><span style="COLOR: blue">老老实实押注</span><span style="COLOR: blue">,</span><span style="COLOR: blue">从不虚张声势</span><span style="COLOR: blue">.</span><span style="COLOR: blue">这便是了</span><span style="COLOR: blue">,</span><span style="COLOR: blue">新手就应该只做该做的事情</span><span style="COLOR: blue">,</span><span style="COLOR: blue">除非你的钱多得没地方花了</span><span style="COLOR: blue">. </span><span style="COLOR: blue">难点在于如何从初学者的水平提升</span><span style="COLOR: blue">. </span><span style="COLOR: blue">大量信息霎那间纷至沓来</span><span style="COLOR: blue">,</span><span style="COLOR: blue">你需要注意牌桌上每个人的每一处细节</span><span style="COLOR: blue">: </span><span style="COLOR: blue">他们怎样交流</span><span style="COLOR: blue">,</span><span style="COLOR: blue">你从前跟他们每个人打过什么交道</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他们所钟爱的玩牌方式</span><span style="COLOR: blue">,</span><span style="COLOR: blue">谁在赢</span><span style="COLOR: blue">,</span><span style="COLOR: blue">谁在输</span><span style="COLOR: blue">,</span><span style="COLOR: blue">凡此种种不一而足</span><span style="COLOR: blue">. </span><span style="COLOR: blue">而且</span><span style="COLOR: blue">,</span><span style="COLOR: blue">你也不可能知道对手手里的牌是什么</span><span style="COLOR: blue">,</span><span style="COLOR: blue">下一张牌又是什么</span><span style="COLOR: blue">. </span><span style="COLOR: blue">你所拥有的信息已超出所能处理的极限</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而且这远非全部</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">编程亦如是</span><span style="COLOR: blue">. </span><span style="COLOR: blue">领域专家无所不知</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但把一切都向你倾囊相授却毫无意义</span><span style="COLOR: blue">. </span><span style="COLOR: blue">何况</span><span style="COLOR: blue">,</span><span style="COLOR: blue">你也不一定需要所有的领域知识</span><span style="COLOR: blue">. </span><span style="COLOR: blue">你需要熟悉团队</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但同事总有些事情是你永远无法知晓</span><span style="COLOR: blue">,</span><span style="COLOR: blue">或者不能完全理解的</span><span style="COLOR: blue">. </span><span style="COLOR: blue">不过</span><span style="COLOR: blue">,</span><span style="COLOR: blue">编程高手能够把必要的领域知识融会贯通</span><span style="COLOR: blue">,</span><span style="COLOR: blue">掌握团队的动态</span><span style="COLOR: blue">,</span><span style="COLOR: blue">并始终提供技术上的真知灼见</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他们知道他们永远无法成为百晓生</span><span style="COLOR: blue">,</span><span style="COLOR: red">他们知道什么事情值得思考</span><span style="COLOR: red">,</span><span style="COLOR: red">哪些应该置之不理</span><span style="COLOR: red">.</span><span style="COLOR: blue">纵使面前汹涌澎湃的信息仍是残缺不全</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他们也总能做出正确的决定</span><span style="COLOR: blue">.</span></div>
<div><strong>&nbsp;</strong></div>
<div><strong><span style="COLOR: blue">即时反馈</span></strong></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">普通牌手在反馈信息少的游戏中表现最好</span><span style="COLOR: blue">. </span><span style="COLOR: blue">因为牌手是根据信息而赢钱的</span><span style="COLOR: blue">. </span><span style="COLOR: blue">在</span><span style="COLOR: blue">5</span><span style="COLOR: blue">张牌梭哈中只有一轮押注的机会</span><span style="COLOR: blue">. </span><span style="COLOR: blue">各位玩家只有一次机会来分析你给出的信息</span><span style="COLOR: blue">,</span><span style="COLOR: blue">而你也只有一次机会犯错</span><span style="COLOR: blue">. </span><span style="COLOR: blue">专家级牌手更喜欢多轮的游戏</span><span style="COLOR: blue">. </span><span style="COLOR: blue">游戏中的回合数越多</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他们就有越多机会从低水平的对手身上捞到好处</span><span style="COLOR: blue">. </span><span style="COLOR: blue">他们喜欢即时反馈</span><span style="COLOR: blue">,</span><span style="COLOR: blue">并根据反馈做出调整</span><span style="COLOR: blue">. </span><span style="COLOR: blue">在有多个回合的游戏中</span><span style="COLOR: blue">,</span><span style="COLOR: blue">每一个回合都可以得到反馈</span><span style="COLOR: blue">,</span><span style="COLOR: blue">专业玩家就会根据当前局势调整打法</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">编程高手同样喜欢即时反馈</span><span style="COLOR: blue">. </span><span style="COLOR: blue">从业务人员即时反馈回来的信息</span><span style="COLOR: blue">,</span><span style="COLOR: blue">可以避免你在构建业务应用时走上弯路</span><span style="COLOR: blue">. </span><span style="COLOR: blue">从另一个程序员即时反馈回来的信息</span><span style="COLOR: blue">,</span><span style="COLOR: blue">可以在软件产品化之前发现</span><span style="COLOR: blue">bug. </span><span style="COLOR: blue">持续集成服务器可以提供即时的集成反馈</span><span style="COLOR: blue">,</span><span style="COLOR: blue">从而避免集成之痛</span><span style="COLOR: blue">. </span><span style="COLOR: blue">喜欢敏捷的人能马上说出迭代是一个有着显著成效的实践</span><span style="COLOR: blue">,</span><span style="COLOR: blue">因为它可以让程序员和业务人员得到即时反馈</span><span style="COLOR: blue">. </span><span style="COLOR: blue">不过</span><span style="COLOR: blue">,</span><span style="COLOR: blue">作为一个编程高手</span><span style="COLOR: blue">,</span><span style="COLOR: blue">纵使他不喜欢敏捷</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他也能够意识到即时反馈的价值</span><span style="COLOR: blue">; </span><span style="COLOR: blue">即使在非敏捷的环境中</span><span style="COLOR: blue">,</span><span style="COLOR: blue">他也会争取得到更多的反馈</span><span style="COLOR: blue">,</span><span style="COLOR: blue">从而避免浪费时间精力</span><span style="COLOR: blue">. </span><span style="COLOR: red">即时反馈可以让你了解前行的方向正确与否</span><span style="COLOR: red">,</span><span style="COLOR: red">每一个专家都会珍视这些信息</span><span style="COLOR: red">.</span></div>
<div><strong>&nbsp;</strong></div>
<div><strong><span style="COLOR: blue">上下文为王</span></strong></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">无论扑克还是编程</span><span style="COLOR: blue">,</span><span style="COLOR: blue">没有绝对正确或是绝对错误的选择</span><span style="COLOR: blue">. </span><span style="COLOR: blue">如果你有一对</span><span style="COLOR: blue">K,</span><span style="COLOR: blue">那么在翻牌之前你该不跟么</span><span style="COLOR: blue">? </span><span style="COLOR: blue">也许吧</span><span style="COLOR: blue">. </span><span style="COLOR: blue">这要看你是在打比赛还是赌钱、有上限还是没上限、你坐在哪个位置上、你是否已经不跟过一次还是已经封顶了等等</span><span style="COLOR: blue">. </span><span style="COLOR: blue">我在扑克中学到了一点</span><span style="COLOR: blue">,</span><span style="COLOR: blue">那就是在给出答案之前</span><span style="COLOR: blue">,</span><span style="COLOR: blue">一定要综合考虑所有的因素</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">在编程中沉浸的时间愈久</span><span style="COLOR: blue">,</span><span style="COLOR: blue">同样的体会在我心里就愈加深刻</span><span style="COLOR: blue">. Java</span><span style="COLOR: blue">在有些时候是不错的选择</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但它并非万能</span><span style="COLOR: blue">. </span><span style="COLOR: blue">所有的编程语言均如此</span><span style="COLOR: blue">. </span><span style="COLOR: blue">工具亦然</span><span style="COLOR: blue">. Hibernate</span><span style="COLOR: blue">很不错</span><span style="COLOR: blue">,</span><span style="COLOR: blue">但它不适用的地方还有</span><span style="COLOR: blue">IBatis,</span><span style="COLOR: blue">当</span><span style="COLOR: blue">IBatis</span><span style="COLOR: blue">也不适用的地方还会出现或自己创造新的解决方案</span><span style="COLOR: blue">. </span><span style="COLOR: blue">几乎没有一款解决方案能够绝对有效</span><span style="COLOR: blue">,</span><span style="COLOR: blue">它只有在恰当的形势下才会发挥应有的作用</span><span style="COLOR: blue">. </span><span style="COLOR: blue">在错误的环境中</span><span style="COLOR: blue">,</span><span style="COLOR: blue">它也许会成为毒药</span><span style="COLOR: blue">.</span></div>
<div style="TEXT-INDENT: 21pt"><span style="COLOR: blue">所以</span><span style="COLOR: blue">,</span><span style="COLOR: blue">面对一门新的语言或者工具</span><span style="COLOR: blue">,</span><span style="COLOR: blue">无论是你是打算弃若敝履</span><span style="COLOR: blue">,</span><span style="COLOR: blue">或是爱不释手推而广之</span><span style="COLOR: blue">,</span><span style="COLOR: blue">不妨先想想它的适用环境</span><span style="COLOR: blue">,</span><span style="COLOR: blue">尽量做到对症下药</span><span style="COLOR: blue">,</span><span style="COLOR: blue">量体裁衣</span><span style="COLOR: blue">.</span></div>...
]]></description>
        <guid isPermaLink="true">http://princetonboy.ycool.com/post.3077696.html</guid>
        <pubDate>Tue, 21 Oct 2008 04:10:42 GMT</pubDate>
<category>玩扑克牌与编程</category>
      </item>
    </channel>
  </rss>
