http://acm.hdu.edu.cn/showproblem.php?pid=3047带权并差集 1 #include 2 #include 3 
#include 4 #define maxn 60000 5 using namespace std; 6 7 int f[maxn],d...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 10:37:28   
                                阅读次数:
287
                             
                    
                        
                            
                            
                                http://acm.hdu.edu.cn/showproblem.php?pid=1213 
1 #include 2 #include 3 #include 4 #define maxn 2000 5 using namespace std; 6 7 
int f[maxn],n,m; 8 ...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 10:10:44   
                                阅读次数:
308
                             
                    
                        
                            
                            
                                As Easy As A+BTime Limit: 2000/1000 MS 
(Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 
35088 Accepted Submission(s):...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 09:54:28   
                                阅读次数:
260
                             
                    
                        
                            
                            
                                http://acm.hdu.edu.cn/showproblem.php?pid=3667最小费用最大流本题流量和费用不是线性关系,fee=a*flow*flow,所以常规套模板spfa无法得到最小费用观察到每条边流量上限只有5,则可以把一条流量为f的边拆成f条流量为1的边,每条边费用是a*(2*...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 05:17:36   
                                阅读次数:
329
                             
                    
                        
                            
                            
                                OJ题目:click here~~
树上的01背包
const int maxn = 102;
int val[maxn];
int w[maxn];
vector g[maxn];
int dp[maxn][maxn];
int n , m ;
void dfs(int u , int father){
    int v , i , j , k;
    for(i = w[u];i...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 05:09:28   
                                阅读次数:
323
                             
                    
                        
                            
                            
                                题目链接:
http://acm.hdu.edu.cn/showproblem.php?pid=2841
Visible Trees
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1337    Accepted S...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 04:45:47   
                                阅读次数:
375
                             
                    
                        
                            
                            
                                题目来源:HDU 4183 Pahom on Water
题意:若干个区域 每个区域有一个值 区域是圆 给出圆心和半径 
从起点(值为400.0)到终点(值为789.0)满足走相交的圆 并且值必须递增 然后从终点到起点 值必须递减 此外区域只能去一次
思路:建图 相互能走的区域连一条边 因为只能走一次 所以拆点 如果没有来回 只有去 那么判断最大流为1即可 
现在还要回来 并且回来的条件和...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 04:22:10   
                                阅读次数:
303
                             
                    
                        
                            
                            
                                题目:链接:http://acm.hdu.edu.cn/showproblem.php?pid=2176
题意:...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 02:13:00   
                                阅读次数:
285
                             
                    
                        
                            
                            
                                题目:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1907
题意:...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 01:56:27   
                                阅读次数:
231
                             
                    
                        
                            
                            
                                转载请注明出处:http://acm.hdu.edu.cn/showproblem.php?pid=1217
Problem Description
Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one u...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 01:48:12   
                                阅读次数:
469