[20250731] BOJ / G5 / 마법사 상어와 비바라기 / 이강현#583
Merged
ShinHeeEul merged 1 commit intomainfrom Jul 31, 2025
Merged
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.
🧷 문제 링크
https://www.acmicpc.net/problem/21610
🧭 풀이 시간
60분
👀 체감 난이도
✏️ 문제 설명
초기 구름이 있음.
구름은 1. 이동하고 2.비를 내리고(+1) 사라짐 3. 비가 내린곳에서 대각선 방향의 4개의 위치에서 물이 있다면 1씩 끌어옴. 4. 물이 2 이상 있는 곳에서 구름이 다시 생성됨. 반복
🔍 풀이 방법
시뮬레이션
그대로 구현하면 되는데, 이게 이동시 위아래 왼쪽 오른쪽이 서로 연결 되어있어서 모듈러 연산을 해야함. 그래서 1-based를 0-based로 바꾸고 모듈러 하고 다시 0-based에서 1-based로 수정해야함.
⏳ 회고
시뮬레이션 귀차늠..