zoukankan      html  css  js  c++  java
  • TopCoder Arena 及其插件安装(转)

    Step1

            在电脑上安装 Java 环境

    免费 Java 下载

    Step2

            安装 TopCoder 客户端

    Load Competition Arena

    Step3

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

                    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 <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" 开一道题目,看看是否在你自己指定的文件夹目录里生成了题目和代码。如果没有,再检查检查上面的操作是否做对了

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

  • 相关阅读:
    Vue 组件化开发之插槽
    Vue 组件化开发
    Vue 双向绑定
    Vue 数组响应
    Vue 分支循环
    万字长文,详解推荐系统领域经典模型FM因子分解机
    操作失误不要慌,这个命令给你的Git一次反悔的机会
    codeforces 1425E,一万种情况的简单题
    计算机专业的学生要怎样做才能避免成为低级的码农?
    推荐系统,深度论文剖析GBDT+LR
  • 原文地址:https://www.cnblogs.com/Jason_Chan/p/3031352.html
Copyright © 2011-2022 走看看