Skip to content

Conversation

@Seol-JY
Copy link
Contributor

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

🧷 문제 링크

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

🧭 풀이 시간

30분 - 근데 풀이 옛날부터 고민했음

👀 체감 난이도

✏️ 문제 설명

파이프 옮기기, dp를 곁들인..

🔍 풀이 방법

파이프 옮기기 1 은 DFS로 풀었는데, 2는 시간초과가 난다. DFS 했던거 그대로 역순으로 생각하면 DP로 비교적 쉽게 나오는 것 같다. 점화식만 세우면 크게 어렵지 않다.

⏳ 회고

반복문 돌릴때 초기값 덮어쓰지 않도록 유의, 또또 오버플로우 났음.. 그냥 long 써야겠다 앞으로

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