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.
PR Summary
<문제 회고>
직접 도형을 그려보며 각 경우에 대한 경우의 수를 구하고 규칙을 찾으려고 했으나 마름모로 인해 복잡해져 머리가 꼬였다. 공식 풀이를 확인해보니 사다리꼴 중 윗 변에 해당하는 삼각형을 어떤 도형을 활용해서 덮느냐에 따라 경우를 간소화할 수 있음을 알게 되었다. 사실상 본 풀이를 코드로 옮긴 것일 뿐이기에 아쉬움이 드는 문제였다. 다음에 한 번 더 풀어보면 좋을 거 같다.
코드의 시간복잡도는 O(n)임에도 불구하고 시간초과가 났다. 아마 파이썬이 느려서...