Notice
Recent Posts
Recent Comments
Link
목록1260 (1)
Be a developer
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/n5Bbb/btqt4zOQHHq/zB0T4gnmcekyCpctRmubQ0/img.png)
c++로 graph를 구현하는 것은 vector의 배열을 이용하면 되므로 편하다. 그리고 queue 또한 구현되어 있어서 사용하기만 하면 된다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 #include #include #include #include #include using namespace std; int v, e, s; bool check[10000]; vector g[10000]; void dfs(int x) ..
알고리즘
2019. 4. 5. 02:14