摘要: #include #include #include #include #include #include #include #include #include using namespace std;#include #include #include #include #include #inc... 阅读全文
posted @ 2014-07-08 21:16 kewowlo 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 题意 :给你3个公式 给出x0,x1,y0,y1 算出矩阵 c在求出种类编号最小的数种类编号= Di%m; Di为0点到i点最短的距离;思路:给你3个公式因为( i*n+j )差不多是n*(n-1) 所以 X Y Z 都先算到n*(n-1)个然后得到邻接矩阵dijkstra得到最短路 d [ n ]... 阅读全文
posted @ 2014-07-08 18:48 kewowlo 阅读(182) 评论(0) 推荐(0) 编辑