HDU-6331Problem M. Walking Plan(dp,floyd)

NoSuchKey