Skip to content

Conversation

@Seol-JY
Copy link
Contributor

@Seol-JY Seol-JY commented Oct 28, 2025

🧷 문제 링크

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

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

N×M 지도 위에서 주사위를 굴리는 시뮬레이션. 주사위는 6개 면을 가지며 초기값은 모두 0. 명령에 따라 동서남북으로 굴리면서:

  • 이동한 칸이 0이면: 주사위 바닥면 → 칸으로 복사
  • 이동한 칸이 0이 아니면: 칸 → 주사위 바닥면으로 복사, 칸은 0으로 변경
  • 매 이동마다 주사위 윗면 출력
  • 지도 밖으로 나가는 명령은 무시

🔍 풀이 방법

Dice 클래스로 주사위 상태 관리, 4가지 회전 메서드 구현
시뮬레이션

⏳ 회고

구현이나 시뮬문제는 좀 햇갈릴거같으면 클래스 써서 하면 좋은거 같음

@Seol-JY Seol-JY self-assigned this Oct 28, 2025
@Seol-JY Seol-JY added the success 👍 해설을 보지 않고 풀었을 때 label Oct 28, 2025
@ShinHeeEul ShinHeeEul merged commit 200b88d 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