acm: Programming Contest World Finals Problem F: A Major Problem