Second York Programming Contest 2004
Rules and Instructions
Problem A
Problem B
Problem C