[BOJ 2870] 수학숙제 - #28
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
풀이 요약
BOJ2870_V1.cpp는 문자열에서 숫자 구간을 공백으로 분리해 추출한 뒤, 앞자리 0을 제거하고 문자열 비교 기준으로 정렬한다.BOJ2870_V2.cpp는 입력 문자열을 순회하며 숫자 구간을 바로 누적하고, 문자를 만나거나 줄이 끝나면 숫자를 결과 목록에 저장한다.0으로 보정한다.Link
https://velog.io/@sh0723/PS-%EB%B0%B1%EC%A4%80-2870-%EC%88%98%ED%95%99%EC%88%99%EC%A0%9C
문제
Closes #27