The time to complete all questions is 120 minutes.
The allowed programming languages are C, C++, Java.
You may bring books or other printed material if you like.

Input/Output format rules:
    1. All questions require you to read the test data from standard
          input and write results to standard output. You cannot use
          files for input or output.
    2. No white space should appear at the end of a line, and all
          lines should be terminated with a new line.
    3. Tabs should never be used.
    4. Output must correspond exactly to the provided sample output,
          including (mis)spelling and spacing.  Multiple spaces will
          not be used in any of the judges' output, except where
          expressly stated.

All programs will be re-compiled prior to testing with the judges'
    data.
Non-standard libraries cannot be used in your solutions. The Standard
    Template Library (STL) and C++ string libraries are allowed.
Programming style is not considered in this contest. You are free to
    code in whatever style you prefer.
Documentation is not required.
Each solution is given limited CPU time and memory to run for each
    input file.

Submitting solutions:

Your solution must be coded in a single source file.
In order to submit:

- Open a new terminal
- Change directory with "cd /cs/fac/packages/pc2"
- Run "./pc2team"
- Provide the login and password given to you by the judges
- Click on the Submit tab (if not already selected)
- Select the problem you solved
- Select the programming language your solution is written in
- Select the source file to submit
- Click on submit

The judge's response should appear a few moments later.

To see the online scoreboard, point your browser to the following file:
http://www.cs.yorku.ca/acm/contest/