Topcoder plug-in Installation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.