圖的m着色問題

  #include <stdio.h> #include <string.h> #include <algorithm> #define NUM 110 using namespace std; int n; ///圖的頂點數 int m; ///可用的顏色數量 int c[NUM][NUM]; ///圖的鄰接矩陣 int x[NUM]; ///當前的解向量 int
相關文章
相關標籤/搜索