Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📎 문제 링크
https://www.acmicpc.net/problem/2573
📝 풀이 내용
빙산이 녹는게 한번에 배연에 반영되야한다고 생각해서 그 부분 로직을 고민했습니다!
이제와 생각해보니... melt 큐에 time을 저장할 필요가 없는거 같아서... 좀 코드가 아쉽네요!!
그리고, 이번에도 시간 초과 방지를 위해 최대한 시간 복잡도를 고려해 풀이를 해봤는데
대략 O(T.N.M) 정도의 시간 복잡도였고
최악의 경우를 고려하면 N * M 은 300 * 300
T의 경우 300 300에서 전체 10으로 채워질 경우
약 1,500 정도
그럼 10^8 이하라 통과할 것이라 생각했습니다!
💬 리뷰 요구사항