摘要:
1 #include <stdio.h> 2 #include <vector> 3 #include <iostream> 4 using namespace std; 5 6 7 const int NumNode = 8 ; 8 vector<int> v[9]; 9 enum colors10 {11 white , black , gray 12 }color[NumNode + 1];13 void dfs( int i )14 {15 color[i] = gray ;16 cout << i << endl 阅读全文