摘要: 98998282013-12-27 16:42:37Accepted15963312MS6668K711 BC++泽泽floyed暴力 1 #include 2 #include 3 double g[1001][1001]; 4 void floyed(int n) 5 { 6 int k,j,i; 7 for(k=1;kg[i][j])16 g[i][j]=g[j][i]=g[i][k]*g[k][j];17 }18 }19 }20 }21 ... 阅读全文
posted @ 2013-12-27 16:44 陈泽泽 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 int g[101][101]; 5 #define inf 0xffffff 6 int n,m; 7 int min; 8 int sx[4]={0,1,0,-1}; 9 int sy[4]={1,0,-1,0};10 int que[1001][2];11 int front,rear;12 void dfs(int x,int y,int c_step)13 {14 if(x==n&&y==m)15 {16 if(c_stepn*m-1)return;20 for(int i... 阅读全文
posted @ 2013-12-27 15:59 陈泽泽 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 一、对int类型数组排序 二、对char类型数组排序(同int类型) 三、对double类型数组排序 四、对结构体一级排序 五、对结构体二级排序 六、对字符串进行排序 按照结构体中字符串str的字典顺序排序 附加一个完整点的代码,对字符串二维数组排序: 如果是一个结构体的话: struct node 阅读全文
posted @ 2013-12-27 12:09 陈泽泽 阅读(206) 评论(0) 推荐(0) 编辑