250x250
반응형
Notice
Recent Posts
Recent Comments
Link
목록최장경로 (1)
N
(SWEA c++)2814. 최장경로
swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV7GOPPaAeMDFAXB&categoryId=AV7GOPPaAeMDFAXB&categoryType=CODE&&& SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com DFS를 이용한 그래프 방문. #include using namespace std; int ans; int N, M; bool graph[11][11]; bool visited[11]; void dfs(int start, int current) { if(ans < current) ans = current; for(int i =..
SW Expert Academy
2020. 10. 21. 11:05