A Step-by-step Guide to Configure Topcoder Competitive Environment

Правка en27, от lucyanna2018, 2023-12-07 10:49:27

Step 1: Get a Topcoder account if you don't already have one.

Address: http://www.topcoder.com/talent/

Click on the "JOIN TOPCODER" button, and fill in the form to register.

Step 2: Download and install Java Runtime Environment.

Address: https://www.java.com/en/download/manual.jsp

Step 3: Download the topcoder applet.

Address: https://www.topcoder.com/contest/arena/ContestAppletProd.jnlp

I strongly recommend you to put the above jnlp into the same folder of executable file "javaws" (Java Web Start Luncher).

Step 4: Configure Java.

If you open the above jnlp directly from javaws, you will get the following error:

To solve this problem, open the Java Control Panel. For Windows users you can find it in Start Menu / Java / Configure Java.

For other operating systems, see https://www.topcoder.com/thrive/articles/installing-topcoders-vintage-arena for more information.

Click the "Security" tab, set the security level to "High", and then add the following six addresses to the list of exception sites.

http://www.topcoder.com
https://www.topcoder.com
http://arena.topcoder.com
https://arena.topcoder.com
https://topcoder.com
http://topcoder.com

Step 5: Login to the Topcoder Competitive Arena.

Use the command line "javaws -wait ContestAppletProd.jnlp" to open the jnlp file. This time you may get a warning, just press continue to move on.

It's recommended to use the "AUTO DETECT" button to automatically check the connection type. Use your account and password to login.

Step 6: Download the plugin files.

Download these three jar files and put them in a folder.

https://community.topcoder.com/contest/classes/TZTester/TZTester.jar https://community.topcoder.com/contest/classes/CodeProcessor/CodeProcessor.jar https://community.topcoder.com/contest/classes/FileEdit/FileEdit.jar

Step 7: Configure the plugin in the applet.

In the applet, click on the "Options" tab and click on "Editor".

Click "Add". Fill in the form with the following (note that the following information is case sensitive):

Name: tangentz.TZTester
EntryPoint: codeprocessor.EntryPoint

Click "Browse" and add the link to the three jar files in the ClassPath. (After selecting the files, just press on the button on the left).

Click "OK" to save the above changes. Then press "Configure". Fill in the form with the following (note that the following information is also case sensitive):

Editor EntryPoint: fileedit.EntryPoint
Processor class: tangentz.TZTester

Click the "Verify" button, you should see the following information:

Press "Configure" , "General Tab":

In the first line, enter the directory where you want to put the problem statement file and the automatically generated program file.

It's recommended that you use the following configuration:

Then click on the "Code Template" tab. For C++ users, paste the following into the code template:

class $$$CLASSNAME$$${
public:
$$$RC$$$ $$$METHODNAME$$$($$$METHODPARMS$$$){
	$$$CARETPOSITION$$$
} 
$$$TESTCODE$$$
};
// BEGIN CUT HERE
int main(){
	$$$CLASSNAME$$$ ___test;
	___test.run_test(-1); 
}
// END CUT HERE

Your own code library can be placed before the first line of the above code snippet. For example:

#include<bits/stdc++.h>
using namespace std;
class $$$CLASSNAME$$${
public:
$$$RC$$$ $$$METHODNAME$$$($$$METHODPARMS$$$){
	$$$CARETPOSITION$$$
} 
$$$TESTCODE$$$
};
// BEGIN CUT HERE
int main(){
	$$$CLASSNAME$$$ ___test;
	___test.run_test(-1); 
}
// END CUT HERE

Then click "Save", then "Close".

Then click "Save", then "Close" (the second time).

Then click "Save", then "Close" (the third time).

Step 8: Open any problem in Practise room to check!

After opening the problem, you should get a html file with problem description:

... as well as an automatically generated program.

After writing, compiling and running the program, you should get the following response locally:

Or if your program is incorrect:

To test your program online, you must compile your source code first (online compiling is done by click the "compile" button). you can use the "Batch Test" button:

If your program passes the examples, the following should be displayed:

Note that "Correct example" (not just "Success") should be "True".

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en34 Английский lucyanna2018 2023-12-07 16:36:20 6
en33 Английский lucyanna2018 2023-12-07 16:35:41 170
en32 Английский lucyanna2018 2023-12-07 16:34:19 28
en31 Английский lucyanna2018 2023-12-07 16:33:25 28
en30 Английский lucyanna2018 2023-12-07 10:54:05 0 (published)
en29 Английский lucyanna2018 2023-12-07 10:53:34 137
en28 Английский lucyanna2018 2023-12-07 10:52:35 147
en27 Английский lucyanna2018 2023-12-07 10:49:27 137
en26 Английский lucyanna2018 2023-12-07 10:48:43 185
en25 Английский lucyanna2018 2023-12-07 10:45:17 147
en24 Английский lucyanna2018 2023-12-07 10:41:28 137
en23 Английский lucyanna2018 2023-12-07 10:40:28 141
en22 Английский lucyanna2018 2023-12-07 10:36:00 210
en21 Английский lucyanna2018 2023-12-07 10:30:44 214
en20 Английский lucyanna2018 2023-12-07 10:27:20 145
en19 Английский lucyanna2018 2023-12-07 10:21:28 128
en18 Английский lucyanna2018 2023-12-07 10:19:28 141
en17 Английский lucyanna2018 2023-12-07 10:17:20 123
en16 Английский lucyanna2018 2023-12-07 10:16:16 253
en15 Английский lucyanna2018 2023-12-07 10:11:12 137
en14 Английский lucyanna2018 2023-12-07 10:09:51 40
en13 Английский lucyanna2018 2023-12-07 10:07:08 10 Tiny change: '\n#include<bits/stdc++.h>\nusing na' -> '\n#include&lt;bits/stdc++.h&gt;\nusing na'
en12 Английский lucyanna2018 2023-12-07 10:06:23 672
en11 Английский lucyanna2018 2023-12-07 10:05:27 39
en10 Английский lucyanna2018 2023-12-07 10:04:34 219
en9 Английский lucyanna2018 2023-12-07 10:03:54 143
en8 Английский lucyanna2018 2023-12-07 10:01:59 56
en7 Английский lucyanna2018 2023-12-07 10:01:14 84
en6 Английский lucyanna2018 2023-12-07 09:59:21 98
en5 Английский lucyanna2018 2023-12-07 09:57:33 144
en4 Английский lucyanna2018 2023-12-07 09:54:11 34
en3 Английский lucyanna2018 2023-12-07 09:52:57 444
en2 Английский lucyanna2018 2023-12-07 09:51:38 470
en1 Английский lucyanna2018 2023-12-07 09:44:12 4369 Initial revision (saved to drafts)