TopCoder中插件的用法

今天弄了一下TopCoder的插件,发现真的很好很强大,插件的下载地址为 :

http://community.topcoder.com/tc?module=Static&d1=applet&d2=plugins,

推荐一个比较好用的插件:ExampleBuilder,按步骤配置好之后,这个插件可以自动生成题目中测试样例的测 试代码,以后用IDE调试的就不用手动输入测试用例了,特别方便,强烈推荐!

这个是官方的插件安装教程:http://apps.topcoder.com/wiki/display/tc/How+to+install+The+Arena+plug-ins。


关于TopCoder的教程可以看这里:http://blog.csdn.net/xuzhezhaozhao/article/details/9297649


===================================

2014年 4月13日 更新

之前使用ExampleBuilder插件需要自己对代码进行处理才能提交, 这里推荐另外一种插件组合, 无需自己处理, 直接提交即可, 非常方便.

以下内容转自: http://www.cnblogs.com/zhj5chengfeng/archive/2013/03/11/2954743.html

到 这里 找到以下三个插件,并下载,保存到一个不轻易挪动(不要改变他们的绝对路径)的地方

                1. TZTester

                2. CodeProcessor

                3. FileEdit

Step4

        1、使用你的账号登陆 Arena。选择:"Options" → "Editors",调出了新的窗口,按 "Add" ,然后在 "name" 栏填 "FileEdit" ,"EntryPoint" 栏填 "fileedit.EntryPoint",路径的话,直接浏览 "FileEdit.jar" 所在的位置即可。完成之后按 "OK"

 

        2、继续 "options" → "Editors"。调出了新的窗口,按 "Add"(PS:这次要添加以上全部三个文件包括 "FileEdit.jar" )。这一次 "name" 栏填 "CodeProcessor" ,"EntryPoint" 栏填 "codeprocessor.EntryPoint",路径栏:直接浏览三个文件就可以。完成之后按 "OK"

 

        3、选择 "CodeProcessor" 做你的 "Default Editor"(PS:就是在前面的两个白色的括号中的第一个打勾), 按 "Save" 键

 

        4、选定 "CodeProcessor" (PS:是高亮显示,不是在前面的两个白色的方括号里打勾哦!),按 "Configure"。在 "Editor EntryPoint" 栏,键入 "fileedit.EntryPoint",在 "Processor Class" 栏键入 "tangentz.TZTester",按 "Verify",弹出窗口看是否全部 "found",是的话按 "OK" 键返回,不是的话看前面的操作是否有误。然后再按后面的 "configure",勾上 "Write the problem description using HTML",把 "File Extension" 那里改成 "html" ,这样题目描述就会被生成一个 html 文件,方便看题。把 "Backup existing file when overwrite" 前面的勾去掉,那东西几乎没用。在 "Enter directory read/write problems to:" 这里填上你放程序文件的绝对路径。最后按一下 "code template",把 "language" 改成 "C++",用下面的模版替换里面原来的模板

$BEGINCUT$
$PROBLEMDESC$
$ENDCUT$
#line $NEXTLINENUMBER$ "$FILENAME$"
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
using namespace std;

#define PB push_back
#define MP make_pair

#define REP(i,n) for(i=0;i<(n);++i)
#define FOR(i,l,h) for(i=(l);i<=(h);++i)
#define FORD(i,h,l) for(i=(h);i>=(l);--i)

typedef vector VI;
typedef vector VS;
typedef vector VD;
typedef long long LL;
typedef pair PII;


class $CLASSNAME$
{
        public:
        $RC$ $METHODNAME$($METHODPARMS$)
        {
                $CARETPOSITION$
        }
        $TESTCODE$
};

// BEGIN CUT HERE
int main()
{
        $CLASSNAME$ ___test;
        ___test.run_test(-1);
        return 0;
}
// END CUT HERE

        最后一起保存,就 OK 了。现在随便进一个 "Practice Rooms" 开一道题目,看看是否在你自己指定的文件夹目录里生成了题目和代码。如果没有,再检查检查上面的操作是否做对了


你可能感兴趣的:(TopCoder)