优先队列
优先队列
Charon_HN
NLP炼丹儿
展开
-
[洛谷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 · 571 阅读 · 0 评论 -
HDU - 6705 K短路(无源点) 2019中国大学生程序设计竞赛(CCPC) - 网络选拔赛
pathYou have a directed weighted graph with n vertexes and medges. 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 · 584 阅读 · 0 评论