[BOJ 2852] NBA 농구 - #34
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.
풀이 요약
BOJ2852_V1.cpp는 리드가 시작되는 시점과 끝나는 시점의 차이를MM:SS문자열로 계산해 각 팀의 누적 리드 시간에 더한다.BOJ2852_V2.cpp는 이전 득점 시각부터 현재 득점 시각까지, 직전 점수 기준으로 이기고 있던 팀의 누적 시간을 초 단위로 더한다.48:00까지 남은 리드 시간을 추가한다.MM:SS형식으로 변환해 1번 팀, 2번 팀 순서로 출력한다.Link
https://velog.io/@sh0723/PS-%EB%B0%B1%EC%A4%80-2852%EB%B2%88-NBA-%EB%86%8D%EA%B5%AC
문제
Closes #33