随笔分类 - ACM水题
摘要:Valera had an undirected connected graph without self loops and multiple edges consisting of n vertices. The graph had an interesting property: there
阅读全文
摘要:题目很水。主要是学会了怎么重载>>,记录一下。 因为输入的数据要存入变量中,故重载>>的函数参数表中要以引用的方式传参题目链接: https://www.patest.cn/contests/gplt/L1-005代码:#include #include...
阅读全文
摘要:两种优先队列的声明方法 std::priority_queue que; std::priority_queue, cmp> que; 优先队列的top默认是大的,若要小的优先,则要定义一个结构体cmp,将()...
阅读全文
摘要:题目: PS:懒得看的话直接拉下去看题目大意You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes whi...
阅读全文

浙公网安备 33010602011771号