For some unknown reasons, starting from Ledang Mountain in Malaysia, it is always possible to end up in any mountain (of course, which also has Ledang Pool end point)on earth by hopping a sequence of Ledang Pools.
)이었던 걸로 기억합니다. 이 조건 때문에 역방향 그래프도 만들어야했던 걸로 기억합니다. 몇 달 전에 푼 문제여서 확실한지는 모르겠네요ㅠㅠ
so4644009 4년 전
과거에 도착할 수 있으면 possible, 아니면 not possible을 출력한다고 해서 음의 사이클을 찾은 후 cycle이 true이면 possible을, 아니면 not possible을 출력하도록 하였습니다. 반례가 있을까요?