Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Feb 14, 2025

🧷 문제 링크

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

🧭 풀이 시간

19분

👀 체감 난이도

✏️ 문제 설명

  • 아두이노를 조종하며 미친 아두이노들을 피해 살아남을 수 있는지 구해보자.

🔍 풀이 방법

[사용한 알고리즘]

  • 시뮬레이션

  • 마지막 줄에 주어지는 이동 명령을 그대로 인덱스로 사용할 수 있도록 dx, dy배열을 초기화 해줬다.
  • 아두이노들의 이동이 진행될 때 각 칸에 위치한 아두이노의 수를 기록해두어 두 개 이상 놓인 칸을 판별했다.

⏳ 회고

구현 연습에 도움이 됨

@oncsr oncsr added the success 👍 해설을 보지 않고 풀었을 때 label Feb 14, 2025
@ShinHeeEul ShinHeeEul merged commit 7c26814 into main Feb 14, 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