
优先队列
优先队列
Charon_HN
地摊炼丹大师、科研农民工、乡野程序员
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[洛谷P1631]序列合并/[codevs1245]最小的N个和
z 题目链接:http://exam.upc.edu.cn/problem.php?cid=1444&pid=12 题目描述 有两个长度都是N的序列A和B,在A和B中各取一个数相加可以得到N^2个和,求这N^2个和中最小的N个。 输入输出格式 输入格式: 第一行一个正整数N; 第二行N个整数Ai,满足Ai<=Ai+1且Ai<=10^9; 第三行N个整数Bi, 满足...原创 2018-08-10 17:37:02 · 622 阅读 · 0 评论 -
HDU - 6705 K短路(无源点) 2019中国大学生程序设计竞赛(CCPC) - 网络选拔赛
path You have a directed weighted graph with n vertexes and m edges. The value of a path is the sum of the weight of the edges you passed. Note that you can pass any edge any times and every time you ...原创 2019-08-26 21:28:29 · 650 阅读 · 0 评论