随笔分类 - online judge:UVa
摘要:总结:通常最短路(最优解)问题会考虑用BFS来进行求解
阅读全文
摘要:这里有一篇关于:istringstream, ostringstream, stringstream的文章,感觉不错. http://www.cnblogs.com/gamesky/archive/2013/01/09/2852356.html
阅读全文
摘要:如图,将海拔按高矮排序好(先排序好,比较容易计算已经淹没地区的水量),由于是水往地处流,如果水量如图,淹没区域如图中阴影地区。
阅读全文
摘要:#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为当前的行...
阅读全文