You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
문제 링크
https://www.acmicpc.net/problem/2606
문제 조건
아이디어
시간 복잡도
DFS의 시간 복잡도는 O(V+E)이다. V의 최댓값은 100이고, E의 최댓값은 모든 차수의 합을 더해 2를 나누면 된다. 따라서 100*99/2로 시간 안에 풀이가 가능하다.
구현
Beta Was this translation helpful? Give feedback.
All reactions