2014年10月5日

摘要: #define MOD 2008#define Mat 35 //矩阵大小 struct mat{//矩阵结构体,a表示内容,r行c列 矩阵从1开始 int a[Mat][Mat]; int r, c; mat() { r = c = 0; ... 阅读全文
posted @ 2014-10-05 01:30 LegendaryAC 阅读(189) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2157求A到B经过K个点的方案数http://www.matrix67.com/blog/archives/276 这里面的经典问题8存图的邻接矩阵自乘k次,得到的新矩阵A行B列就是答案#include #inc... 阅读全文
posted @ 2014-10-05 01:28 LegendaryAC 阅读(199) 评论(0) 推荐(0) 编辑