http://acm.hdu.edu.cn/showproblem.php?pid=1598 find the most comfortable road Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8648 Accepted Submission(s): 3648 Problem Description XX星有许多城市,城市…
题目链接:http://poj.org/problem?id=2784 Buy or Build Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 1528 Accepted: 592 Description World Wide Networks (WWN) is a leading company that operates large telecommunication networks. WWN would li…
Minimal Ratio Tree Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 12 Accepted Submission(s) : 7 Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem Description For a tree, which n…
#include<cstdio> #include<cstring> #include<algorithm> #define MAXN 210 #define INF 2147483646 using namespace std; int f[MAXN], Rank[MAXN]; //Rank长度 int n, m, pos; struct Edge{ int u, v, val; //按照val从小到大排列 friend bool operator<(const…