인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

onejunu's profile image
onejunu

asked

Introduction to Python Algorithm Problem Solving (Coding Test Preparation)

5. Regular polyhedron

다면체 풀이

Written on

·

160

2

그냥 N+1 ~ M+1 까지 출력한걸로 답했는데 이 답도 맞나요?

python코테 준비 같이 해요!

Answer 1

0

codingcamp님의 프로필 이미지
codingcamp
Instructor

규칙을 찾아서 해결하는 것도 좋은 접근방법입니다. 원준님처럼 답해도 무방합니다.

제가 이 문제를 만든 의도는 처음 코드를 구현해보는 분들에게 2중for문과 1차원리스트를 이용해 카운팅하고 최대값이 여러개일때 그것들을 다 찾아보는 코드를 짜보라는 의도입니다. 이런 잔기술이 나중에 중급문제를 풀때 사용됩니다.

onejunu's profile image
onejunu

asked

Ask a question