[정민서-16주차 알고리즘 스터디]#31
Open
minseojeong1012 wants to merge 50 commits intoSSAFY13th-algorithm:minseojeong/week16from
Open
[정민서-16주차 알고리즘 스터디]#31minseojeong1012 wants to merge 50 commits intoSSAFY13th-algorithm:minseojeong/week16from
minseojeong1012 wants to merge 50 commits intoSSAFY13th-algorithm:minseojeong/week16from
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 싸피 15반 알고리즘 스터디 16주차 [정민서]
📌 문제 풀이 개요
✅ 문제 해결 여부
💡 풀이 방법
문제 1: 마인크래프트
문제 난이도
실버 2
문제 유형
구현
접근 방식 및 풀이
우선 입력을 받으면서 최소, 최대 높이를 찾습니다
블록을 캐는 건 2초, 놓는 건 1초가 걸린다는 사실을 반복하면서, 시간이 같다면 더 높은 높이를 선택하는 식으로 진행했습니다.
문제 2: 자리배정
문제 유형
구현
문제 난이도
실버 3
접근 방식 및 풀이
1번부터 순서대로 앉을 때, 아래 → 오른쪽 → 위 → 왼쪽 순서로 회전하며 비어있는 좌석에 앉히는 식으로 진행했습니다
좌석이 업다면 0을 출력도록 했습니다,
문제 3: 빙고
문제 유형
구현
문제 난이도
실버 4
접근 방식 및 풀이
빙고판과 사회자가 부르는 순서를 입력받아 저장하고, 부를 떄마다 해당 숫자를 0으로 마킹했습니다.
3중리상 빙고인 순간 출력하는 방식으로 진행했습니
문제 4: 걷기
문제 유형
구현
문제 난이도
실버 3
접근 방식 및 풀이
대각선으로 최대한 많이 가는 것이 이득일 수도, 아닐 수도 있기 때문에, 그부분을 고려했고, 만약 대각선 한번이 상하+좌우 두번보다 빠르다면 대각선을 많이 쓰는것이 이득이기에 최소값을 선택했습니