Skip to content

BOJ9461_파도반_수열_실버3_권은홍 #46

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

96Hong2
Copy link
Owner

@96Hong2 96Hong2 commented Mar 19, 2024

  1. Scanner로 테스트케이스 T를 받아 T만큼 반복
  2. Scanner로 N을 받아 long padoArr[N+1] 생성
  3. for i 1부터 돌며 배열 값 채우기
    1. i ≤ 3 일 때 padoArr[i] = 1
    2. else if i ≤ 5 일 때 padoArr[i] = 2
    3. else padoArr[i] = padoArr[i-5] + padoArr[i-1]
  4. padoArr[N] 출력

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