Solutions for York Programming Contest: October 3, 2008
A.java
B.cc
C.java
; for a more efficient solution, look up "Josephus Problem" in wikipedia