Skip to content

BOJ9461_파도반_수열_실버3_조재은 #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jojaegu2
Copy link
Collaborator

dp 문제로 점화식을 구해서 풀 수 있습니다.
n번째 정삼각형의 변의 길이는 n-2번째 삼각형과 n-3번째 삼각형의 변의 길이의 합과 같다.
따라서 f(n) = f(n-2) + f(n-2) (단 n=1,2,3 일 때 f(n) = 1) 이다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant