Skip to content
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

5522 #6

Closed
leedoopal opened this issue Dec 13, 2020 · 2 comments
Closed

5522 #6

leedoopal opened this issue Dec 13, 2020 · 2 comments

Comments

@leedoopal
Copy link
Owner

leedoopal commented Dec 13, 2020

https://www.acmicpc.net/problem/5522

쌤 이거 왜 틀린건지 도저히 모르겠어요!! 😮😮😮

@KoEonYack
Copy link
Collaborator

KoEonYack commented Dec 14, 2020

@Woohwahwa 😮잘 지내고이써요??😮

Dev event Education섹션 부분이 엄청난데요?!?!!!

주말에 다른 작업하느라 지난번 백준 이슈 올린것을 못보고있네요~~흑흑

for (let i = 0; i <= 4; i++) { <-- 참고!
  output += parseInt(input[i]); <-- idx번호로 더하는게 아니라 array[i] 값이 들어가야해요!
}

백준풀이에서 .length와 같이 입력받은 배열로 list 값을 쓰는 것보다 input으로 주어진 배열의 범위 혹은 지금 문제처럼 5개의 값만 들어온다고 했으니 0 to 4 range를 직접 입력하는경우가 훠얼씬 많답니당~

나중에 프로그래머스 풀때는 .length를 쓸 일이 많을꺼에요!

@leedoopal
Copy link
Owner Author

고마워용!!!!!

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

No branches or pull requests

2 participants