To compile and test code in C++:
To compile and test code in Java:
- Run cygwin (Start → All Programs → Cygwin)
- To compile, run g++ my_source.cc
- To test with input file, run ./a.exe < my_input_file
- Run Command Prompt (Start → Run → cmd )
- Run Z:\setall.bat to include the Java directories in your path.
Alternatively, include it yourself; they are in the J: drive.
- To compile, run javac MyClass.java
- To test with input file, run java MyClass < my_input_file
- Note that your class name must match your file name!
- Eclipse can be used, but keep in mind the REAL regional competition will not have Eclipse.
Submission and Clarifications
- Run PC^2 by running Z:\pc2\pc2team.
- Log in using the same number as your acsu account. For example,
if your are logged in as ascu06, sign into PC^2 with the account team6/team6;
if your are logged in as ascu14, sign into PC^2 with the account team14/team14.
- Read input from standard in. Output to standard out.
- Submit your source code through PC^2. (Choose the right problem and language!)
- If you have questions about a specific problem or your environment,
send a clarification through PC^2.
- Various versions of the scoreboard can be found in Z:\scoreboard.
- You do not need to check if the input is correct. E.g. If the problem statement says
there is a positive integer, there will not be a negative integer or an alphanumeric string.
You may get the following responses for a submission
- Accepted or Correct. This is the only response for solving the problem.
- Presentation Error. You are missing or creating extra white spaces or newlines.
- Wrong Answer. Program produced the wrong output given the test input.
- Time-limit Exceeded. Program ran for over 2 min without terminating.
- Run-time Error. Program ran into an exception, a segmentation fault, a stack overflow, or whatever.
- Compilation Error. Program did not compile.
- Always do the problems from easiest to hardest; this minimizes your penalty score.
- D, E and F are kinda hard.
- Always make sure that your problem produces the sample output given the sample input.