2015年1月26日
摘要: #include #include #define M 10#define N 4int main(){ int a[M]={1,2,3,4,5,6,7,8,9,10}; int b[M]={1,1,1,1,1,1,1,1,1,1}; int c[N][N],d[N][N]; ... 阅读全文
posted @ 2015-01-26 21:31 赛亚人 阅读(531) 评论(0) 推荐(1) 编辑
摘要: #include #include #define Num 255typedef struct String{ char ch[Num]; int len;}String;void StrAssign(String *T,char *s){ int i=0; while(s[... 阅读全文
posted @ 2015-01-26 20:58 赛亚人 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include #include #define M 1000int size;typedef struct Fushu{ int a; int b;}Fushu;void fupop(Fushu *c){ int i,t=0; int max=c[0].a*c[0].a+... 阅读全文
posted @ 2015-01-26 17:43 赛亚人 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 在一个数组中如果并且,则称和为一对逆序对,请设计算法计算数组中的逆序对数,要求算法的时间复杂度为O(n*log(n))。 阅读全文
posted @ 2015-01-26 15:26 赛亚人 阅读(111) 评论(0) 推荐(0) 编辑