-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Algorithm] 마법의 엘리베이터 #59
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
💬 문제
[코딩테스트 연습 - 마법의 엘리베이터](https://school.programmers.co.kr/learn/courses/30/lessons/148653)
💬 Idea
storey가 0이 될때까지 while문을 돌며 result를 구한다.
storey를 10으로 나눈 나머지를 갖고 계산을 한다. → ex) 554: 첫 나머지는 4
storey를 10으로 나눈 나머지가 6 이상일 경우, storey를 10으로 나눈 나머지가 5이면서 앞자리가 5 이상일 경우
→ 엘리베이터
상승
→ 앞자리 + 1→ 엘리베이터
하강
💬 풀이
The text was updated successfully, but these errors were encountered: