topcoder arena 插件配置

本文详细介绍了如何下载并配置Arena插件,包括下载Arena和三个特定插件,将它们放在同一目录下以方便使用相对路径。配置过程涉及设置JRE、编辑器和处理器的名称、入口点和类路径等细节,以及对编辑器和处理器进行具体配置,例如指定保存文件位置、代码模板和校验输入。此外,还提供了配置对话框示例和关键代码段的说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Arena插件配置

下载Arena

[地址:][http://community.topcoder.com/tc?module=MyHome]
左边:Competitions->Algorithms->Single Match Rounds Launch Arena->Load Competition Arena

下载插件

[地址:][http://community.topcoder.com/tc?module=Static&d1=applet&d2=plugins]
下载三个插件:FileEdit,CodeProcessor1.2,TZTester
将下载的Arena和三个插件放在同一个目录下,方便使用相对路径。

插件配置

启动Arena并登陆 要运行Arena,需要有JRE(Java Runtime Environment)
选择option->Editor->ADD
name:随便取一个,如CodeProcessor
EntryPoint:codeprocessor.EntryPoint,注意区分大小写
classpath:反复使用Browse加入CodeProcessor.jar,FileEdit.jar,TZTester.jar等,也可以手动输入,多个类之间以”;”隔开,可以使用相对路径

如果设置正确,在点ok后,列表中就会多出一项

选择CodeProcessor,点Configure
Editor EntryPointfileedit.EntryPoint,Configure可以对Editor进行详细的配置
Processor Classtangentz.TZTester,Verify可以校验输入是否正确
配置fileedit,点Configure, 弹出一个配置对话框. 在General选项卡中, 可以指定要保存的文件的位置。
选中Write Problem Description to separate file, 把File Extension改为html
然后转到Code Template选项卡, 输入代码模板:

$BEGINCUT$
$PROBLEMDESC$
$ENDCUT$
#line $NEXTLINENUMBER$ "$FILENAME$"
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstring>
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)

#define LEFT    0
#define RIGHT   1
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<double> VD;
typedef long long LL64;
typedef unsigned long long LL65;
typedef pair<int,int> PII;

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

// BEGIN CUT HERE
int main()
{
$CLASSNAME$ ___test;
___test.run_test(-1);
system("pause");
}
// END CUT HERE

参考:http://blog.youkuaiyun.com/perfumekristy/article/details/8373136

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值