Solutions for York Programming Contest: September 12, 2008
A.cc
B.java
C.java