摘要:        
题目链接用DFS就可以过,判重的时候用map去重的,因为每一条边是最大是10000,用150000进制的3位数就可以表示出现的状态。数据水了。。。我的代码用的是15000进制就A了。。。卡线过的1300+ms 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <cstdlib> 6 #include <map> 7 using namespace std; 8 int ans,p[16],    阅读全文
posted @ 2012-09-21 14:45
Naix_x
阅读(123)
评论(0)
推荐(0)
        
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号