結果 : e. shortest path codeforces solution