ACM International Collegiate Programming Contest
Sponsored by IBM
Rules:
1. There are nine problems to be completed in five hours.
2. 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. Additional input and output specifications can
be found in the General Information Sheet.
3. No whitespace should appear in the output except between printed fields.
4. All whitespace, either in input or output, will consist of exactly one blank character.
5. The allowed programming languages are C, C++ and Java.
6. All programs will be re-compiled prior to testing with the judges’ data.
7. Non-standard libraries cannot be used in your solutions. The Standard Template Library (STL)
and C++ string libraries are allowed.
The standard Java API is available, except for those
packages that are deemed dangerous by contestant officials (e.g., that might generate a security
violation).
8. The input to all problems will consist of multiple test cases.
9. Programming style is not considered in this contest. You are free to code in whatever style you
prefer. Documentation is not required.
10. All communication with the judges will be handled by the PC
2 environment.
11. Judges’ decisions are to be considered final. No cheating will be tolerated.