SCU 2006 warmup contest 19

E: Route Planning