Skip to content

Conversation

@lkhyun
Copy link
Contributor

@lkhyun lkhyun commented Oct 28, 2025

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

NxM 지도 위 특정 지점에 주사위 한개가 있음.
주사위를 상하좌우로 한칸씩 굴릴거임. 처음엔 주사위의 모든 면이 다 0임
굴린 후, 주사위의 위치에 해당하는 지도의 값이 0이면 주사위 바닥 부분의 값을 복사함.
아니라면 주사위의 바닥의 값이 지도의 값이 되고 지도의 값은 0이됨.
여러번 굴릴때마다 주사위의 윗면의 값을 출력.
지도를 벗어나는 경우에는 굴리는 행위도 출력도 하면 안됨.

🔍 풀이 방법

시뮬레이션
문제에 전개도가 주어져서 가로를 row, 세로를 col로 설정하여 state를 정의했다.
굴리는 방향에 따라 배열값을 직접 수정했다.

⏳ 회고

구현이 요즘 메타래

@lkhyun lkhyun self-assigned this Oct 28, 2025
@lkhyun lkhyun added the success 👍 해설을 보지 않고 풀었을 때 label Oct 28, 2025
@ShinHeeEul ShinHeeEul merged commit e9a9fd1 into main Oct 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants