Skip to content

[20260324] BOJ / G3 / 역사 / 이인희#2041

Merged
ShinHeeEul merged 1 commit intomainfrom
LiiNi-coder
Mar 24, 2026
Merged

[20260324] BOJ / G3 / 역사 / 이인희#2041
ShinHeeEul merged 1 commit intomainfrom
LiiNi-coder

Conversation

@LiiNi-coder
Copy link
Copy Markdown
Contributor

🧷 문제 링크

https://www.acmicpc.net/problem/1613

🧭 풀이 시간

60 분

👀 체감 난이도

✏️ 문제 설명

  • a < b, b < c, a < c와같은 두 숫자간의 서열 쌍이 최대 50000개 나오고, 숫자는 최대 500개이다. 이때 x, y쌍이 최대 50000개 주어질때, x와 y간의 서열을 출력. 알수없거나 누가 더 쎄거나.

🔍 풀이 방법

  • 플로이드워셜

⏳ 회고

  • 플로이드 워셜: 최단거리 / 모든 정점 간의 최단거리 / O(N^3) / dists[][] 초기값: Integer.MAX_VALUE로 하면안됨. / for문 순서 : 거쳐, 시작, 끝
  • 벨만포드: 최단거리 / 한 정점에서 다른 모든 정점간의 최단거리 / O(NE) / 다익스트라에서 우선순위큐빼고 그냥 모든 next를 검사
  • 다익스트라 : 최단거리 / 한 정점에서 다른 모든 정점간의 최단거리 / O(E*longN)

@LiiNi-coder LiiNi-coder added the hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 label Mar 24, 2026
@ShinHeeEul ShinHeeEul merged commit c597cae into main Mar 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants