Conversation
raejun92
approved these changes
Apr 22, 2026
doitchuu
approved these changes
Apr 24, 2026
Member
doitchuu
left a comment
There was a problem hiding this comment.
언어가 다르다보니 주석으로 써주시는 내용들이 도움이 많이 되네요 ! 👍
항상 친절하게 써주셔서 감사해요!
sik9252
approved these changes
Apr 26, 2026
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.
이렇게 풀었어요
1. 숫자의 표현
1) 복잡도 계산
2) 접근 아이디어
3) 회고
이 코드를 보시면, 수학적 성질을 이용한 풀이입니다.
"어떤 자연수 n을 연속된 자연수의 합으로 표현하는 방법의 수는 n의 홀수 약수의 개수와 같다."
예를 들어 n=15일 때, 15의 약수는 1, 3, 5, 15 이들은 모두 홀수이므로 총 4개가 나온다는 결과를 뽑아낼 수 있다는 방법을 이용한 코드입니다.
수알못은 웁니다... 한 수 배웠습니다...
궁금하신분은 https://readble-ko.tistory.com/199 <- 여기 링크로 가시면 더욱 자세한 설명을 확인해보실 수 있습니다.
2. 다음 큰 숫자
1) 복잡도 계산
2) 접근 아이디어
3) 회고
세상에나 bitCount() 라는 이진수 갯수를 구하는 Java 내장 함수는 생각지도 못했습니다. Java 내장 함수가 참 다양한게 많구나 라는 걸 다시 느낀 문제였습니다. 심지어 이 방식은 객체를 전혀 만들지 않고, CPU가 가장 잘하는 0과 1 계산만으로 순식간에 개수를 찾아낸다고 합니다. 성능상으로도 오히려 이게 더 좋네요... 여러모로 요번 주차 문제는 생각지도 못한 부분들이 많았습니다