High School Programming Competition
Friday, May 3, 2002
The directories below contain all of the solutions actually produced by students "under fire" during this competition. Future competitors might find it instructive to examine these. The directories are ordered in the following way: first, alphabetically by programming language; second, if more than one school used the same programming language, then alphabetically by school.
There is a .zip file in each of the directories that contain
more than one program. In each case the file is called
all.zip, and contains
all of the source code files in that particular directory.
Experience shows that when you click on a file with a
.bas or .java extension your browser may want to do something
with the file other than simply displaying it. (Or, at least
Internet Explorer may behave this way.) If this happens, the best
thing to do is download the .zip file and use WinZip to decompress all
the files at once to your local hard drive, then look at them there.
The top team used Java, while the next three teams in rank used C++. Students should not necessarily draw any conclusions from this, since of course all programming languages are "equally powerful", and though some are better than others at certain tasks, for the problems on the competition the distinctions are not relevant. Keep in mind that these student solutions should not (necessarily) be regarded as models of excellent programming structure and style, since they were produced very quickly, in the heat of battle so to speak, and you would therefore not expect them to be as well-formatted and fine-tuned as programs produced with greater deliberation. That having been said, some of the code is really quite excellent.
A brief description of the contents of each directory follows.
The problem descriptions themselves may be obtained from the
problems.txt file in the directory containing
our own C++ solutions.
- BASIC_CPAllen contains two solutions written in BASIC by the team of James Bucknam and Blair Young from Charles P. Allen High School.
- CPP_AuburnDrive contains four solutions written in C++ by the fourth place "team" which consisted of Chris Adams of Auburn Drive High School, all by himself!
- CPP_CobequidEC1 contains four solutions written in C++ by the first of two teams from Cobequid Educational Centre to finish in the top ten, Tony Alexander and Daniel Andrews.
- CPP_CobequidEC2 contains one solution written in C++ by the second of two teams from Cobequid Educational Centre to finish in the top ten, Matthew Whiston and Jon Matheson.
- CPP_DrumlinHeights contains a full set of seven solutions written in C++ by the second place team of Stuart Crosby and Justin Hurlbert from Drumlin Heights Consolidated School.
- CPP_Horton contains six solutions written in C++ by the third place team of Chris Kistner and Nick Miller from Horton High School.
- CPP_SydneyAcademy contains three solutions written in C++ by the team of Stephen Jackson and Michael Corning from Sydney Academy.
- Java_SaintPats contains a full set of seven solutions written in Java by the first place team of Micah McCurdy and Jason Rogers from Saint Patrick's High School. Your browser may try to fire up some kind of Java interpreter or other program to deal with the file if you click on one of the source code files. If this happens, the best thing to do is download the .zip file and use WinZip to decompress all the files at once to your local hard drive, then look at them there.
- Pascal_Sackville contains three solutions written in Pascal by the team of Matthew Webb and Borden Scott from Sackville High School.
- Pascal_SirJohnA contains one solution written in Pascal by the team of Tim O'Malley and Troy Wilkie from Sir John A. MacDonald High School.