开始没理解题意.原来destinations是指路的序号.而不是点.DP. #include <stdio.h> #include <string.h> ]; typedef struct { int s, e, w; } road_st; road_st roads[]; int main() { int case_n; int n, m, des; int i, j, min; scanf("%d", &case_n); while (case_n-…
题目链接:[http://acm.hdu.edu.cn/showproblem.php?pid=3790] 最短路径问题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 25620 Accepted Submission(s): 7650 Problem Description 给你n个点,m条无向边,每条边都有长度d和花费p,给你…
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2962 Trucking Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1763 Accepted Submission(s): 618 Problem Description A certain local trucking co…