<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>GCCFeli.cn &#187; TopCoder</title> <atom:link href="http://gccfeli.cn/tag/topcoder/feed" rel="self" type="application/rss+xml" /><link>http://gccfeli.cn</link> <description></description> <lastBuildDate>Thu, 14 Jul 2011 08:18:00 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1</generator> <atom:link rel='hub' href='http://gccfeli.cn/?pushpress=hub'/> <item><title>Topcoder Arena 插件使用方法</title><link>http://gccfeli.cn/2009/02/topcoder-arena-plugin.html</link> <comments>http://gccfeli.cn/2009/02/topcoder-arena-plugin.html#comments</comments> <pubDate>Wed, 11 Feb 2009 02:26:08 +0000</pubDate> <dc:creator>Felicia</dc:creator> <category><![CDATA[Topcoder SRM]]></category> <category><![CDATA[TopCoder]]></category> <category><![CDATA[插件]]></category><guid
isPermaLink="false">http://www.gccfeli.cn/?p=296</guid> <description><![CDATA[<p>TopCoder是一个优秀的网上编程竞赛平台。网站上同时提供了不少辅助性的插件，大部分是参赛者所贡献的。这些插件可以根据题目描述自动生成代码模版以及测试用例，便于在比赛中节约时间，以最高的效率解决问题。</p><p>插件<a
href="http://www.topcoder.com/tc?module=Static&#038;d1=applet&#038;d2=plugins">下载</a></p> <span
class="readmore"><a
href="http://gccfeli.cn/2009/02/topcoder-arena-plugin.html" title="Topcoder Arena 插件使用方法">阅读全文（1795字）</a></span>]]></description> <content:encoded><![CDATA[<p>TopCoder是一个优秀的网上编程竞赛平台。网站上同时提供了不少辅助性的插件，大部分是参赛者所贡献的。这些插件可以根据题目描述自动生成代码模版以及测试用例，便于在比赛中节约时间，以最高的效率解决问题。</p><p>插件<a
href="http://www.topcoder.com/tc?module=Static&#038;d1=applet&#038;d2=plugins">下载</a></p><p>以CodeProcessor+FileEdit+TZTester为例介绍一下插件组合的安装方法： 策略设置<br
/> <span
id="more-296"></span><br
/> 首先要修改系统的安全设置，找到java plugin所用的策略文件，一般是Program FilesJavajre1.5.0_02libsecurityjava.policy，在其中加入如下几行</p><div
class="hl-wrapper"><div
class="hl-surround"><div
class="hl-main">grant codeBase &quot;http://www.topcoder.com/-&quot; {<br
/>&nbsp;&nbsp; &nbsp;permission java.lang.RuntimePermission &quot;setSecurityManager&quot;;<br
/>&nbsp;&nbsp; &nbsp;permission java.lang.RuntimePermission &quot;createSecurityManager&quot;;<br
/>};</div></div></div><p>这一步可能需要重新启动系统才能生效。 安装插件</p><ol><li>下载插件</li><li>启动TCApplet并登陆</li><li>在option中选择Editor</li><li>点ADD</li><li>name可以随便取一个，如CodeProcessor</li><li>EntryPoint填：codeprocessor.EntryPoint，注意区分大小写</li><li>classpath一栏，反复使用Browse加入CodeProcessor.jar，FileEdit.jar，TZTester.jar等，也可以手动输入，多个类之间以”;”隔开，可以使用相对路径。</li><li>如果设置正确，在点ok后，列表中就会多出一项</li><li>选择CodeProcessor，点Configure<ol><li>在Editor EntryPoint里输入fileedit.EntryPoint，Configure可以对Editor进行详细的配置</li><li>在Processor Class里输入tangentz.TZTester，Verify可以校验输入是否正确</li><li>配置fileedit，将模版文件修改成TZTester提供的形式，</li></ol></li></ol><div
class="hl-wrapper"><div
class="hl-surround"><div
class="hl-main"><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">functional</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">algorithm</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">stdexcept</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">iostream</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">sstream</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">fstream</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">numeric</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">iomanip</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">cstdlib</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">cstring</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">utility</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">cctype</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">vector</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">string</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">bitset</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">cmath</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">queue</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">stack</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">ctime</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">list</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">map</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#include </span><span
class="hl-quotes">&lt;</span><span
class="hl-string">set</span><span
class="hl-quotes">&gt;</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/>&nbsp;<br
/></span><span
class="hl-reserved">using</span><span
class="hl-code"> </span><span
class="hl-types">namespace</span><span
class="hl-code"> </span><span
class="hl-identifier">std</span><span
class="hl-code">;<br
/>&nbsp;<br
/></span><span
class="hl-prepro">#define</span><span
class="hl-code"> </span><span
class="hl-identifier">PB</span><span
class="hl-code"> </span><span
class="hl-identifier">push_back</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/></span><span
class="hl-prepro">#define</span><span
class="hl-code"> </span><span
class="hl-identifier">MP</span><span
class="hl-code"> </span><span
class="hl-identifier">make_pair</span><span
class="hl-prepro"></span><span
class="hl-code"><br
/>&nbsp;<br
/></span><span
class="hl-types">typedef</span><span
class="hl-code"> </span><span
class="hl-identifier">vector</span><span
class="hl-code">&lt;</span><span
class="hl-types">int</span><span
class="hl-code">&gt; </span><span
class="hl-identifier">VI</span><span
class="hl-code">;<br
/></span><span
class="hl-types">typedef</span><span
class="hl-code"> </span><span
class="hl-identifier">vector</span><span
class="hl-code">&lt;</span><span
class="hl-identifier">string</span><span
class="hl-code">&gt; </span><span
class="hl-identifier">VS</span><span
class="hl-code">;<br
/></span><span
class="hl-types">typedef</span><span
class="hl-code"> </span><span
class="hl-identifier">vector</span><span
class="hl-code">&lt;</span><span
class="hl-types">double</span><span
class="hl-code">&gt; </span><span
class="hl-identifier">VD</span><span
class="hl-code">;<br
/></span><span
class="hl-types">typedef</span><span
class="hl-code"> </span><span
class="hl-identifier">pair</span><span
class="hl-code">&lt;</span><span
class="hl-types">int</span><span
class="hl-code">,</span><span
class="hl-types">int</span><span
class="hl-code">&gt; </span><span
class="hl-identifier">PII</span><span
class="hl-code">;<br
/></span><span
class="hl-types">typedef</span><span
class="hl-code"> </span><span
class="hl-types">long</span><span
class="hl-code"> </span><span
class="hl-types">long</span><span
class="hl-code"> </span><span
class="hl-identifier">LL</span><span
class="hl-code">;<br
/></span><span
class="hl-types">typedef</span><span
class="hl-code"> </span><span
class="hl-types">unsigned</span><span
class="hl-code"> </span><span
class="hl-types">long</span><span
class="hl-code"> </span><span
class="hl-types">long</span><span
class="hl-code"> </span><span
class="hl-identifier">ULL</span><span
class="hl-code">;<br
/>&nbsp;<br
/></span><span
class="hl-types">class</span><span
class="hl-code"> $</span><span
class="hl-identifier">CLASSNAME</span><span
class="hl-code">$ </span><span
class="hl-brackets">{</span><span
class="hl-code"><br
/></span><span
class="hl-reserved">public</span><span
class="hl-code">:<br
/>$</span><span
class="hl-identifier">RC</span><span
class="hl-code">$ $</span><span
class="hl-identifier">METHODNAME</span><span
class="hl-code">$</span><span
class="hl-brackets">(</span><span
class="hl-code">$</span><span
class="hl-identifier">METHODPARMS</span><span
class="hl-code">$</span><span
class="hl-brackets">)</span><span
class="hl-code"> </span><span
class="hl-brackets">{</span><span
class="hl-code"><br
/>&nbsp;&nbsp; &nbsp;<br
/></span><span
class="hl-brackets">}</span><span
class="hl-code"><br
/>$</span><span
class="hl-identifier">TESTCODE</span><span
class="hl-code">$<br
/></span><span
class="hl-brackets">}</span><span
class="hl-code">; <br
/>&nbsp;<br
/></span><span
class="hl-comment">// BEGIN CUT HERE</span><span
class="hl-code"><br
/></span><span
class="hl-types">int</span><span
class="hl-code"> </span><span
class="hl-identifier">main</span><span
class="hl-brackets">()</span><span
class="hl-code"> </span><span
class="hl-brackets">{</span><span
class="hl-code"><br
/>&nbsp;&nbsp; &nbsp;$</span><span
class="hl-identifier">CLASSNAME</span><span
class="hl-code">$ </span><span
class="hl-identifier">___test</span><span
class="hl-code">;<br
/>&nbsp;&nbsp; &nbsp;</span><span
class="hl-identifier">___test</span><span
class="hl-code">.</span><span
class="hl-identifier">run_test</span><span
class="hl-brackets">(</span><span
class="hl-code">-</span><span
class="hl-number">1</span><span
class="hl-brackets">)</span><span
class="hl-code">;<br
/></span><span
class="hl-brackets">}</span><span
class="hl-code"><br
/></span><span
class="hl-comment">// END CUT HERE</span></div></div></div><p>使用方法</p><p>打开题目，fileedit便会将解析题目得到的代码模版保存到本地文件中，TCApplet的编辑框中则输出提示信息。在竞赛过程中，可以选择将模版保存到指定的文件中，这样可以不用反复在IDE中手动加载；练习过程中，则可以选择保存到与类名相同的文件中，便于归档。TZTester会自动往代 码中加入测试用例，这些代码用自定义标记隔开，在提交系统进行编译测试的过程时候会被自动过滤。</p><p>在使用fileedit生成代码的时候可能会出现缩进不整齐的情况，可以用Astyle格式化。</p><p>与fileedit同类的还有KawigiEdit和PopsEdit等，这两个是独立的编辑器，不需要外部软件和IDE。各种Editor都可以脱离CodeProcessor使用，对于简单的应用已经足够。PopsEdit甚至还支持java代码的调试</p><p>TZTester生成的测试代码中，每个测试用例被写在同一行内。可读性比较差。而ExampleBuilder生成的代码则比较繁琐，并且在头部加入了一堆辅助函数。</p><p>其他几个插件还没有尝试，网页上也提供了插件编写的API，可以创建自己的插件</p> ]]></content:encoded> <wfw:commentRss>http://gccfeli.cn/2009/02/topcoder-arena-plugin.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>[TopCoder] SRM378</title><link>http://gccfeli.cn/2007/11/topcoder-srm378.html</link> <comments>http://gccfeli.cn/2007/11/topcoder-srm378.html#comments</comments> <pubDate>Wed, 21 Nov 2007 07:39:00 +0000</pubDate> <dc:creator>Felicia</dc:creator> <category><![CDATA[Topcoder SRM]]></category> <category><![CDATA[TopCoder]]></category><guid
isPermaLink="false">http://www.gccfeli.cn/?p=112</guid> <description><![CDATA[<p>只做了第一个傻瓜题，第二题是求方程的整数解，想了一会儿，不会做，然后本本要没电了就去睡觉了。 <br/>自己感觉做得非常垃圾，早上起来一看，居然黄名了，很意外。 <br/>洛克也蓝名了，以后可以一起做Div1了。</p> ]]></description> <content:encoded><![CDATA[<p>只做了第一个傻瓜题，第二题是求方程的整数解，想了一会儿，不会做，然后本本要没电了就去睡觉了。 <br/>自己感觉做得非常垃圾，早上起来一看，居然黄名了，很意外。 <br/>洛克也蓝名了，以后可以一起做Div1了。</p> ]]></content:encoded> <wfw:commentRss>http://gccfeli.cn/2007/11/topcoder-srm378.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>[TopCoder] SRM373 Div1</title><link>http://gccfeli.cn/2007/10/topcoder-srm373-div1.html</link> <comments>http://gccfeli.cn/2007/10/topcoder-srm373-div1.html#comments</comments> <pubDate>Wed, 24 Oct 2007 06:02:00 +0000</pubDate> <dc:creator>Felicia</dc:creator> <category><![CDATA[Topcoder SRM]]></category> <category><![CDATA[TopCoder]]></category> <category><![CDATA[计算几何]]></category><guid
isPermaLink="false">http://www.gccfeli.cn/?p=104</guid> <description><![CDATA[<p>今天早上早起到机房做SRM，250分的比较简单，500分的题比较奇怪，以前都没做过这种题。想了挺久的，没想出来。可能我比较笨吧。1000分的题是个计算几何，来不及看了。今天做的人很少，rating到了1490。</p> ]]></description> <content:encoded><![CDATA[<p>今天早上早起到机房做SRM，250分的比较简单，500分的题比较奇怪，以前都没做过这种题。想了挺久的，没想出来。可能我比较笨吧。1000分的题是个计算几何，来不及看了。今天做的人很少，rating到了1490。</p> ]]></content:encoded> <wfw:commentRss>http://gccfeli.cn/2007/10/topcoder-srm373-div1.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>[TopCoder] SRM372 Div1</title><link>http://gccfeli.cn/2007/10/topcoder-srm372-div1.html</link> <comments>http://gccfeli.cn/2007/10/topcoder-srm372-div1.html#comments</comments> <pubDate>Sun, 21 Oct 2007 10:34:00 +0000</pubDate> <dc:creator>Felicia</dc:creator> <category><![CDATA[Topcoder SRM]]></category> <category><![CDATA[TopCoder]]></category><guid
isPermaLink="false">http://www.gccfeli.cn/?p=100</guid> <description><![CDATA[<p>这次比赛做的很垃圾，只做了一题，就是250分的模拟题，而且做的很慢。500分的题是个DP，不难，可是没做出来。晚上11点在寝室做，学校熄灯了，幸亏本本还有电，撑着做完了。可是没法打草稿……总之做的很挫。后来把500分的题补做了。1000分的题简单，没来得及看，是个最小费用最大流。楼教主瞬秒了。 <br/>rating降了一点，1467吧。</p> ]]></description> <content:encoded><![CDATA[<p>这次比赛做的很垃圾，只做了一题，就是250分的模拟题，而且做的很慢。500分的题是个DP，不难，可是没做出来。晚上11点在寝室做，学校熄灯了，幸亏本本还有电，撑着做完了。可是没法打草稿……总之做的很挫。后来把500分的题补做了。1000分的题简单，没来得及看，是个最小费用最大流。楼教主瞬秒了。 <br/>rating降了一点，1467吧。</p> ]]></content:encoded> <wfw:commentRss>http://gccfeli.cn/2007/10/topcoder-srm372-div1.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>[TopCoder] SRM371 Div1</title><link>http://gccfeli.cn/2007/10/topcoder-srm371-div1.html</link> <comments>http://gccfeli.cn/2007/10/topcoder-srm371-div1.html#comments</comments> <pubDate>Sun, 14 Oct 2007 12:41:00 +0000</pubDate> <dc:creator>Felicia</dc:creator> <category><![CDATA[Topcoder SRM]]></category> <category><![CDATA[TopCoder]]></category> <category><![CDATA[算法]]></category><guid
isPermaLink="false">http://www.gccfeli.cn/?p=97</guid> <description><![CDATA[<p>昨晚12点SRM。我和Sherlock玩命了一把，在机房睡了觉。在此感谢小金鱼的毯子：） <br/>因为上次做到蓝名了，这次就能做Div1。以前都没有做过Div1的题目，赛前又听说比较难，心里就没底。比赛开始后看了250分的题，数据不大，按照ACM的规则，是可以模拟的。于是我就写了个模拟，一步一步走的那种，中间出了很多错，包括坐标系错误，RE，还有各种乱七八糟的就是不过样例。越做越郁闷……忽然突发奇想，发现可以用数学方法解决，果然很快又不会错。然后是500分的题。瞬秒，直接一个KM算法上去了。1000分的题没时间写了，因为受250的拖累…… <br/><br/>最后结果是117 + 440。今天看一下rating，加了一点，有1494。不过还是没有达到wywcgs大牛的期望，差一点黄名。 <br/>要是第一题快些就好了 <br/><br/>下次继续努力！</p> ]]></description> <content:encoded><![CDATA[<p>昨晚12点SRM。我和Sherlock玩命了一把，在机房睡了觉。在此感谢小金鱼的毯子：） <br/>因为上次做到蓝名了，这次就能做Div1。以前都没有做过Div1的题目，赛前又听说比较难，心里就没底。比赛开始后看了250分的题，数据不大，按照ACM的规则，是可以模拟的。于是我就写了个模拟，一步一步走的那种，中间出了很多错，包括坐标系错误，RE，还有各种乱七八糟的就是不过样例。越做越郁闷……忽然突发奇想，发现可以用数学方法解决，果然很快又不会错。然后是500分的题。瞬秒，直接一个KM算法上去了。1000分的题没时间写了，因为受250的拖累…… <br/><br/>最后结果是117 + 440。今天看一下rating，加了一点，有1494。不过还是没有达到wywcgs大牛的期望，差一点黄名。 <br/>要是第一题快些就好了 <br/><br/>下次继续努力！</p> ]]></content:encoded> <wfw:commentRss>http://gccfeli.cn/2007/10/topcoder-srm371-div1.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 2/15 queries in 0.012 seconds using disk

Served from: gccfeli.cn @ 2012-02-07 15:40:47 -->
