Skip to content

Conversation

@Seol-JY
Copy link
Contributor

@Seol-JY Seol-JY commented Feb 13, 2025

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

자석이 있는 톱니바퀴 돌리기, 같은 극이였으면 안돌아가고 다른극이면 같이 돈다.

🔍 풀이 방법

톱니이므로 한번에 돈다는 것을 인지. 먼저 기준 톱니로부터 왼쪽 오른쪽 도는지 여부를 판단(반대방향으로 돔).
이후 한번에 돌린다. 비트연산으로 쉽게 해결 가능.

⏳ 회고

덕분에 비트연산 이해가 늘었다. 배열이나 덱썼으면 메모리나 시간 초과했으려나? 잘 모르겠다. 그리고

실수좀하지맙시다

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