First on http://www.topcoder.com/tc? Module = static & d1 = applet & D2 = plugins download three plug-ins: tztester, codeprocessor, and fileedit.
Log on to arena and select "option"-> "Editor". Then, "add" and "name" are randomly written. For example, choose "myprocessor" and "entrypoint" codeprocessor. entrypoint ", which is case sensitive. Then select the downloaded plug-in the class path, and select three plug-ins in a row. The plug-ins are automatically separated by semicolons. Click OK.
Then, select "default" for the added plug-in, select it, and press config. Enter entrypoint and fill in fileedit. entrypoint, processor class and tangentz. tztester. Then, click Verify. If all are found, everything works.Then press configure to check "write the problem
Description using HTML ", change file extension to HTML, so that the question description will be generated into an HTML file for easy reading. Remove the check box for backup existing file When overwrite, Which is useless.Then, configure the plug-in according to configure. Enter directory read/write problems:ProgramThe absolute path of the file. In the code template, change the language to your language, and then edit the template.
Below is my template.
# Include <string> # include <vector> # include <algorithm> # include <iostream> # include <sstream> # include <fstream> # include <map> # include <set> # include <cstdio> # include <cmath> # include <cstdlib> # include <ctime> # include <iomanip> using namespace STD; # define SZ (x) (INT (X. size () int toint (string s) {istringstream sin (s); int t; sin> T; return t ;} template <class T> string tostring (t x) {ostringstream sout; sout <<X; return sout. STR () ;}// begin cut heretypedef long int64; int64 toint64 (string s) {istringstream sin (s); int64 t; sin >>t; return t ;} template <class T> T gcd (t a, t B) {if (a <0) return gcd (-a, B); If (B <0) return gcd (A,-B); Return (B = 0 )? A: gcd (B, A % B);} // end cut here class $ classname $ {public: $ RC $ methodname $ ($ methodparms $) {$ RC $ ret; return ret;} $ testcode $}; // begin cut hereint main () {$ classname $ ___ test; ___ test. run_test (-1); Return 0;} // end cut here
Reprinted from: http://blog.csdn.net/mindmb/article/details/5961041