TopCoder及其插件安装

一、你的电脑得有个java环境,要是没有那就 点击这里下载 不要担心,这是官网

二、你得有个TopCoder的客户端安装包,要是没有那就 点击这里下载 不要担心,这也是官网

三、准备三个插件:

       1、FileEdit 

     2、CodeProcessor 

     3、TZTester 

四、安装插件(ps:每一步都要记得保存哦)

    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 <cstdlib>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <fstream>
#include <numeric>
#include <iomanip>
#include <bitset>
#include <list>
#include <stdexcept>
#include <functional>
#include <utility>
#include <ctime>
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<int> VI;
typedef vector<string> VS;
typedef vector<double> VD;
typedef long long LL;
typedef pair<int,int> 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" 开一道题目看看,是否在你自己指定的文件夹目录里生成了题目和代码。如果,没有,在看看上面的操作你是否对了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值