![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
ab2296939808
我是爱学习的多
展开
-
Hongcow Builds A Nation ___codeforces 744A
题目 https://cn.vjudge.net/problem/592815/origin Hongcow is ruler of the world. As ruler of the world, he wants to make it easier for people to travel by road within their own countries. The worl原创 2017-02-12 10:36:40 · 211 阅读 · 0 评论 -
Hongcow Builds A Nation ___codeforces 744A
思路 这个题算是一个贪心算法的题目,但是贪心的算法本身很多变,很能简单的说明白具体应该怎么做,就和dp一样有时很难定义dp的量, #include <stdio.h> #include <vector> #include <stack> #include <algorithm> #include <map> using namespace std; vector<int> g[1001]; i原创 2017-02-12 10:31:47 · 228 阅读 · 0 评论