随笔分类 -  online judge:UVa

摘要:总结:通常最短路(最优解)问题会考虑用BFS来进行求解 阅读全文
posted @ 2017-02-03 19:26 douzujun 阅读(654) 评论(0) 推荐(0) 编辑
摘要:这里有一篇关于:istringstream, ostringstream, stringstream的文章,感觉不错. http://www.cnblogs.com/gamesky/archive/2013/01/09/2852356.html 阅读全文
posted @ 2016-08-18 15:49 douzujun 阅读(256) 评论(0) 推荐(0) 编辑
摘要:如图,将海拔按高矮排序好(先排序好,比较容易计算已经淹没地区的水量),由于是水往地处流,如果水量如图,淹没区域如图中阴影地区。 阅读全文
posted @ 2016-08-15 11:49 douzujun 阅读(274) 评论(0) 推荐(0) 编辑
摘要:#include #include #include #include #include #include #include using namespace std; typedef pair PII; const int maxr = 10000 + 5; const int maxc = 10 + 5; int m, n, db[maxr][maxc], cnt; //m为当前的行... 阅读全文
posted @ 2016-04-20 20:26 douzujun 阅读(390) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示