Skip to content

Conversation

@LiiNi-coder
Copy link
Contributor

@LiiNi-coder LiiNi-coder commented Sep 20, 2025

🧷 문제 링크

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

🧭 풀이 시간

55분

👀 체감 난이도

✏️ 문제 설명

  • 일방향 그래프의, 반드시 outdegree가 1인 그래프에서, 사이클에 속하지않는 멤버 수 구하기.

🔍 풀이 방법

  • dfs + visited, 만약 이미 지나온 경로에 도착한다면 경로의 수에서 해당 사람의 인덱스값을 빼서 사이클에 속하지않은 사람 수 구하기

⏳ 회고

  • 그런데 틀린다고한다. 시간이 없어서 일단 여기까지 풀지만, 아무래도 dfs 처음 시작하는 사람이 indgree가 0인 사람이어야할 듯하다

@LiiNi-coder LiiNi-coder added the fail 😢 해설을 보고 풀었거나, 못 풀었을 때 label Sep 20, 2025
@ShinHeeEul ShinHeeEul merged commit 8fa02e2 into main Sep 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fail 😢 해설을 보고 풀었거나, 못 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants