HDU 2224 The shortest path

NoSuchKey