简单最小生成树,继续我的kruskal#include#include#include#includeusing namespace std;const int 
MAX=1000000;struct node{ int left,right,cost;}road[MAX];bool cmp(n...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 09:28:42   
                                阅读次数:
333
                             
                    
                        
                            
                            
                                又是一道简单并查集#include#include#include#include#include#include#include#include#include#include#include#define 
inf 0x0f0f0f0fusing namespace std;const doub....
                            
                            
                                分类:
其他好文   时间:
2014-05-01 09:12:36   
                                阅读次数:
289
                             
                    
                        
                            
                            
                                Square Coins
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 7612    Accepted Submission(s): 5156
Problem Description
People in Sil...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:38:21   
                                阅读次数:
316
                             
                    
                        
                            
                            
                                Problem Description
给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度.
回文就是正反读都是一样的字符串,如aba, abba等
 
Input
输入有多组case,不超过120组,每组输入为一行小写英文字符a,b,c...y,z组成的字符串S
两组case之间由空行隔开(该空行不用处理)
字符串长度len 
 
Ou...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:37:21   
                                阅读次数:
311
                             
                    
                        
                            
                            
                                Can you find it?
Time Limit: 10000/3000 MS (Java/Others)    Memory Limit: 32768/10000 K (Java/Others)
Total Submission(s): 9863    Accepted Submission(s): 2587
Problem Description
Give you...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:33:20   
                                阅读次数:
300
                             
                    
                        
                            
                            
                                本文出自:http://blog.csdn.net/svitter
原题地址:http://acm.hdu.edu.cn/showproblem.php?pid=3790
另外写文章之前偷懒一下,发现一个很好的入门python教程!:http://woodpecker.org.cn/abyteofpython_cn/chinese/
题意:在最短路径的前提下,添加了一个最短路径中权值最小的要...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:32:22   
                                阅读次数:
285
                             
                    
                        
                            
                            
                                Radar 
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2229    Accepted Submission(s): 888
Problem Description
N cities of the Java Kin...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:26:20   
                                阅读次数:
346
                             
                    
                        
                            
                            
                                Problem Description
In the Wide Web World, Which web server was popular in web site? Apache, nginx, lighttpd? Baidu.com use Apache, and many web sites like 163.com use nginx. Why? Its configuration i...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:24:20   
                                阅读次数:
355
                             
                    
                        
                            
                            
                                ??
Saruman's Army
Time Limit: 1000MS
 
Memory Limit: 65536K
Total Submissions: 3446
 
Accepted: 1752
Description
Saruman the White must lead his army along a straight pa...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:22:23   
                                阅读次数:
264
                             
                    
                        
                            
                            
                                算法入门经典关于区间覆盖的讲解:
8.4.6:区间覆盖问题...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:21:23   
                                阅读次数:
262