UCSD Programming Contest

General Rules

We will have special accounts set up for the contest with logins and passwords. These accounts must be used for the contest. You are not allowed to take code from other accounts or from the Internet, but you are allowed to bring any books or written material with you to the contest. From example, you may want to bring programming language books, algorithm and theory books, math books, etc.

The contest will consist of 5 to 6 questions (e.g., 2 easy, 2 medium, and 1-2 hard). Your solutions will be submitted to a primary account, where judges will review them, and you will be given a form similar to as is done at the ACM programming contest telling you whether your solution was correct. If it was correct, the form will also tell you your time.

For the final rankings, each team who solves at least one problem will be ranked:

There will be student runners to bring result forms back for submitted solutions, to bring back print outs from the printer, and to run any problem clarifications you might have to the judges.

Problems are "correct" if they pass all our test cases within the allotted time. All problems have an implicit time constraint; we won't wait an hour (or even 5 minutes) for your program to finish. In addition some problems have an explicit time constraint (either written on the whiteboards or specified with the problem). All problems have been solved and run in seconds.

Final standings are based on the number of correct solutions submitted by the end of the contest. If there is a tie, for example, several students solve 3 problems each, then the tie is broken by time to solution. Each successful solution scores 1 point per minute from the beginning of the contest to the time of solution, plus 20 points for each incorrect solution to that problem that was submitted. Lowest total score wins. If you don't eventually solve a problem, you won't be charged points for any incorrect solutions you may have submitted.


You will use the program PC^2 to submit your solutions. More details on how to use this software will follow. To be totally safe, make the first line of your solution a comment containing the problem number, your team number, and your name. It's unlikely that your solution to one problem will be a correct answer to a different problem, so label carefully. We will log your submission and return a grading slip to you with either the time to correct solution or a very rough and not so helpful reason that it failed. The sample grading slip in your packet shows the possible reasons that we use. For this contest all problems take input from a file and write to a file. The name of the file will be specified in the problem statement.


You are allowed to bring and use any printed material including books, notes, printouts of programs, etc. You may not use a calculator. You may not use anything electronic, from the network, from a floppy, from another computer, from a disk file that you stashed on the machines before the contest, etc. At regionals and nationals access to electronic stuff is just not there; here you are on your honor. This is an individual contest; all work must be your own-- don't copy from your neighbor or ask him/her for help. Copying from the books and printed stuff that you bring or borrow is fine.