DFS之三
摘要:
//sicily 1039 Phone Home#include<iostream> //求图的色数,即使各相邻顶点的颜色不相同所需的最小色数.数据量小,直接枚举+DFS#include<stdio.h>#include<cmath>#include<cstring>using namespace std;struct node{ double x,y;}point[20];int n,cnt[20][20],color[20],num,suc;void dfs(int i){ for(int c=1;c<=num;++c) { int f 阅读全文
posted @ 2011-08-22 12:08 sysu_mjc 阅读(141) 评论(0) 推荐(0)
浙公网安备 33010602011771号