
ACM水题
文章平均质量分 63
Apale_7
这个作者很懒,什么都没留下…
展开
-
解封我的优快云...
开学后沉迷学习无法自拔(其实是懒),忘记写博客来记录我的学习生涯,直至现在寒假了才想起,现决定解封我的优快云。刚刚看了下我的第一篇博客(我都差点忘记我写过博客。。。),当时初学编程,那道题的思路完全是错的...... 最恐怖的是还有几十个人看了那篇QAQ。 大一第一学期已经过去了,学了一个学期ACM,我越来越觉得师兄刚开始说的"人与人之间的差距有时候可能比人比猪还大"这句话特别在理,原创 2018-02-02 22:39:20 · 518 阅读 · 0 评论 -
宽搜——Dungeon Master
题目: PS:懒得看的话直接拉下去看题目大意You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute t原创 2018-02-02 23:17:51 · 419 阅读 · 0 评论 -
团体程序设计天梯赛-练习集 L1-005 考试座位号
题目很水。主要是学会了怎么重载>>,记录一下。 因为输入的数据要存入变量中,故重载>>的函数参数表中要以引用的方式传参题目链接: https://www.patest.cn/contests/gplt/L1-005代码:#include <iostream>#include<queue>#include<algorithm&g...原创 2018-03-15 13:19:28 · 437 阅读 · 0 评论 -
HDU5090(贪心+priority_queue优化)
两种优先队列的声明方法 std::priority_queue<T> que; std::priority_queue<T, std::vector<T>, cmp> que; 优先队列的top默认是大的,若要小的优先,则要定义一个结构体cmp,将()运算符重载因为优先队列的优先级通过!cmp来判断,cm...原创 2018-03-10 23:00:43 · 241 阅读 · 0 评论 -
CodeForces - 404C Restore Graph
Valera had an undirected connected graph without self-loops and multiple edges consisting of n vertices. The graph had an interesting property: there were at most k edges adjacent to each of its verti...原创 2018-11-19 11:29:47 · 291 阅读 · 0 评论