
STL
文章平均质量分 76
n-1
这个作者很懒,什么都没留下…
展开
-
HDU 3152 Obstacle Course (BFS+优先队列)
题目链接:HDU 3152 Obstacle Course题意:给出一幅N*N的地图,每个点上都有一个权值。求从(0,0)到(n-1,n-1)的最小权值是多少。(只能上下左右走)。BFS搜索全图,取个最小值。AC代码;#include#include#include#includeusing namespace std;int mp[150][150];原创 2014-10-07 19:45:24 · 1029 阅读 · 0 评论 -
HDU 5058 So easy (set容器大法好)
题目链接:HDU 5058So easy题意:给出两个序列,问这个两个序列构成的集合是否相同、set大法好!AC代码:#include#include#includeusing namespace std;#define ll __int64set ss1,ss2;set::iterator it;int main(){ ll n原创 2014-10-08 17:53:24 · 1039 阅读 · 0 评论