2004/Contest/愛媛大会/Problem D Pathological Paths