Plugins

Setup

  1. Log into TopCoder Arena.
  2. Options -> Setup User Preferences.
  3. In tab Editors, choose your default language.
  4. Options -> Editor.
  5. In Editor Preferences, Click Add.
  6. Name: [arbitrary].
  7. EntryPoint: codeprocessor.EntryPoint.
  8. ClassPath: The paths of CodeProcessor.jar, FileEdit.jar and TZTester.jar.
  9. Press OK.
  10. Highlight the item you just created, click Configure.
  11. Editor EntryPoint: fileedit.EntryPoint.
  12. Processor Class: tangentz.TZTester (Can click Verify to verify).
  13. Click Configure to the right of Editor EntryPoint.
  14. Fill the blank Enter directory to read/write problems to with the path you intend to put code templates and problem descriptions.
  15. Check the first four checkboxes.
  16. In tab Code Template, choose the language you use, fill the template and restart the browser. If you use C++, the following code might be helpful:

    $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$)
            {
            }
            $TESTCODE$
    };
    // BEGIN CUT HERE
    int main()
    {
            $CLASSNAME$ ___test;
            ___test.run_test(-1);
    
            system("pause"); //Windows Only
    
            return 0;
    }
    // END CUT HERE
    

Note. Each time you open a problem, the corresponding problem description will be written into a HTML file located in the folder you specfied. And the template code will be generated automatically. You can edit them using your favourite editors and then test or submit in TopCoder Arena.

Links: