摘要: #include<stdio.h>#define n 4//马鞍点是第I行值最小第J列值最大 void maxmin(int a[n][n]){ int i,j ,flag; int max[n],min[n]; for(i=0;i<n;i++) { min[i]=a[i][0];//将数组每行的第 阅读全文
posted @ 2016-09-20 22:05 mykonons 阅读(928) 评论(0) 推荐(1) 编辑
摘要: #include<stdio.h>#include<malloc.h>#include<stdlib.h>#define max 5 void fun(int a[max][max],int n){ int i,j,k=0,m; if(n%2==0) m=n/2; else m=n/2+1; for 阅读全文
posted @ 2016-09-20 21:23 mykonons 阅读(610) 评论(0) 推荐(0) 编辑
摘要: //说实话我把差集想的太复杂了 考虑了许多没用的 //最后却用了一种简单的方法解决了 #include<stdio.h>#include<malloc.h>#include<stdlib.h>typedef struct node{ //char data;// int count; int dat 阅读全文
posted @ 2016-09-20 02:30 mykonons 阅读(2212) 评论(0) 推荐(0) 编辑