贪心法之着色问题

// 0522.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include 
using namespace std;

#define n 5
static int arc[100][100];
static color[100];

int Ok(int i)
{
	for(int j=0; j>m;  
  

    cout<<"输入无向图点和边的关系:"<>a;  
            arc[i][j]=a;  
        }  
  
    ColorGraph();  
	for(i=0; i

就是一种颜色挨个顶点确定是不是可以着色,把每种颜色用到极致

你可能感兴趣的:(完整代码)