YoonYn9915 / 6월 4주차 / 3문제 #227
Merged
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.
🌱WIL
🚀주간 목표 문제 수: 3개
백준 #1504. 특정한 최단 경로: 그래프, 다익스트라 / 골드 4
정리한 링크: (바로가기)
🚩제출한 코드
💡TIL
다익스트라 알고리즘 복습...
int(1e9)
의미: **1,000,000,000 (10억)**을 정수로 표현한 값입니다.
사용 예시: 알고리즘 문제에서 "무한"에 가까운 큰 수로 자주 사용됩니다.
float형으로 표현된 1e9는 부동소수점 숫자(1000000000.0)이지만,
int()로 감싸 정수로 변환합니다.
sys.maxsize
의미: 운영체제와 파이썬 구현에 따라 결정되는, 파이썬에서 쓸 수 있는 가장 큰 정수 값 중 하나입니다.
값: 보통 64비트 시스템에서 9223372036854775807
사용 예시: heapq 등에서 기본 우선순위를 매우 크게 설정할 때 사용됩니다.
sys.maxsize는 실제로 정수 타입의 한계는 아니고, 리스트 등 자료구조 최대 크기 판단에 쓰입니다.
파이썬의 int는 사실상 무한 정밀도(메모리가 허락하는 한 크기 제한 없음).
float('inf')
의미: **양의 무한대 (+∞)**를 표현하는 부동소수점 값입니다.
사용 예시: 비교할 수 없는 값, 무한 루프 탈출 조건, 그래프 알고리즘에서 거리 초기화 등.
float('-inf')로 음의 무한대도 표현 가능.
백준 #1753. 최단 경로: 그래프, 다익스트라 / 골드 4
정리한 링크: (바로가기)
🚩제출한 코드
💡TIL
백준 #15905. 스텔라가 치킨을 선물했어요: 구현 / 실버 5
정리한 링크: (바로가기)
🚩제출한 코드
💡TIL