SCU 2005' Warmup Contest 26

B: Random Walk