· pc^2"schematic pc^2

Source: Internet
Author: User

Pc^2 is a software developed by Sacramento California State University for the ACM Program Design Contest.

The software is written in the Java language and therefore has very good cross-platform compatibility. At present, most of the world's regional races use this platform for competitions.

Here is a graphical way to elaborate on pc^2 Dafa.

First, the preparatory work

Second, JDK configuration

Third, compiler configuration

Four, service-side configuration

Five, the administrator side

Six, the referee end

Seven, the players end

Eight, the list

Nine, Batch import account

X. Additional Instructions

First, the preparatory work

Ready JDK and pc^2, jdk words to go to the official website, pc^2 and a Web mapping tool, click I download

Second, JDK configuration

First install the JDK, install after the configuration environment variables, specifically, not much to say, JDK configuration online Search a lot of java_home:jdk root directory path:jdk directory of the bin and the Binclasspath under the JRE: Lib and Tools.jar under Lib in the JDK directory
A special reminder: When configuring environment variables, don't miss out, form good habits

Third, compiler configuration

If you have installed Codeblocks, or dev will be OK. This is a g++.
Locate bin and Lib under the installation directory and set path and Classpath, respectively. Does not have the installation also does not matter, I here is this copy of the CB directory under the MinGW folder come with.
MinGW Lower Lib

Four, service-side configuration

1 : Enter ipconfig under cmd to get the IP address of this machine 2:There is a Pc2v9.ini file in the pc^ 2 root directory, open it, and change the server and remoteserver to the appropriate IP3: Save the file and copy it to the Bin folder  4: Open the Pc2server.bat under the Bin folder, start the server (the default account password is site1)
5: Server specific Times,login and the like, a look on the understanding, left to everyone to study on the line.

Five, the administrator side

The same way, open the Pc2admin.bat, open the admin side

//Add title:1. Select Problem,add to add a title2in general, there is a title, time limit, input and output data, etc., the title of a, the timing is now 1s, the data is read from the stdin3. Judeing Type, generally not modified. 4. Validdator: General selection of Use pc^2validdator diff,5.Click Add to add the topic to complete1-diff Player output data and standard output data if a little bit different, the return result is no-Wronganswer, even if it is more a space or a carriage return, is not the same, only the exact same time is yes.2-ignore whitespace at start of file ignores all the spaces at the beginning of the output files and compares them in 1.3-ignore leading whitespace on lines ignores all the spaces at the beginning of each line and compares them in 1.4-Ignore all whitespace on lines ignores all spaces and compares them in 1.5-Ignore empty lines ignores all empty rows and compares them in 1.

// Add Language 1 . In language, select Add 2. Select the language you want to add, here are two, C + + and Java Note: If it is on the Windows platform, CNU C+ + executable Filename and program execution Command line two lines of information followed by ". exe"

· pc^2"schematic pc^2

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.