1.假设可以用color种颜色,如果不满足则增大color的量
import java.util.*;public class Main{ static int[] state; static int color=3; static int len; public static void main(String[] args) { int[][] e={ {0,0,0,0,0},{0,0,1,1,1},{0,1,0,1,0},{0,1,1,0,0},{0,1,0,0,0}}; len=e.length; state=new int[len]; if(deepFun(0,e)){ System.out.println("OK"); for(int i=1;i