Several problems encountered in building the PC2 competition environment

Source: Internet
Author: User

Several problems encountered in building the PC2 competition environment

Because of the ACM training team's training needs (this is what ICPC uses), I have spent a lot of time building this stuff.

(Although the predecessors have already written the specific steps on the wiki ),

During this period, I encountered many problems. These problems were summarized using lessons.

Basic System:

1. tu12.04 and ubuntu14.04 have been used;

2. Be sure to install all necessary software and delete useless software carefully (I accidentally deleted the software-center );

3. Choose to use it as the server and judge computer. Pay attention to setting it to prevent lock screen (this is the details );

Configure the server:

1. Be sure to copy pc2v9. ini under the/home/acm/pc2-9.2.3 directory to/home/acm/pc2-9.2.3/bin (this is the most basic step );

2. When you modify the IP address of site1 of/home/acm/pc2-9.2.3/bin/pc2v9. ini, you only need to change localhost to the IP address of the server,

Do not delete the server in "server = localhost: 51002". Otherwise, the client will be unable to connect to the server.

(This is why I have been busy for a long time today );

3. "Add question: Click Problems, click Add, and enter the question name. The unit is seconds ),

Check Problem Requires Input Data, Stdin,

Select the input File, select Judges Have Provided an Answer File, and select the output File.

Click Judge Type and select Computer Judging to automatically Judge the question.

Click Validator, select Use PC ^ 2 Validator, and select 1-diff from the drop-down list. OK ."

This is a step-by-step process (a window). Check Stdin. Otherwise, a piece of positive code will be displayed and handed over to the judge side until Executing ....

Run until the time limit is exceeded and then return the TLE result to the client.

(I have no idea why for the moment. Wait for me to study the English version of the manual carefully );

4. Make sure that each question is judged by the judge end and that all the judge ends are enabled. Otherwise, no results will be returned when code is submitted,

Rank will not be displayed (in an emergency );

5. Execute scoreboard instead of board or pc2board for the default account used to log on to pc2board (Fortunately, I knew how to look at the server and soon found out );

6. "terminal execution pc2board, under the pc2-9.2.3/bin/will generate html folder, cd html, python-m SimpleHTTPServer,

Enter the Server ip Address: 8000 in the browser to view the game status ."

Note that the python-m SimpleHTTPServer service must be enabled in the background. Otherwise, you can check it!

Configure the client:

1. You also need to modify the ip address of site1 of/home/acm/pc2-9.2.3/bin/pc2v9. ini (to be consistent with the ip address of the server );

2. Create a new PC ^ 2. c file on the desktop and write the following content # include <stdlib. h> int main () {system ("cd/home/acm/pc2-9.2.3/bin

& Amp;/home/acm/pc2-9.2.3/bin/pc2team ");} (different computer and pc2-9.2.3 files for different paths note flexible modification and use)

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.