so4644009   4년 전

과거에 도착할 수 있으면 possible, 아니면 not possible을 출력한다고 해서 음의 사이클을 찾은 후 cycle이 true이면 possible을, 아니면 not possible을 출력하도록 하였습니다. 반례가 있을까요?

so4644009   4년 전

사용하지 않은 조건 때문에 틀렸었고, 지금은 다시 풀어 해결했습니다.

minjoonist   4년 전

어떤 부분이 틀린 거였나요?

so4644009   4년 전

4번째 조건(

  • 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.

)이었던 걸로 기억합니다. 이 조건 때문에 역방향 그래프도 만들어야했던 걸로 기억합니다. 몇 달 전에 푼 문제여서 확실한지는 모르겠네요ㅠㅠ

댓글을 작성하려면 로그인해야 합니다.