01 2018 档案

摘要:#include <cstdio>#include <cstdlib>#include <algorithm>using namespace std;const int inf=0x3f3f3f3f;double s[100];double mn;double min(double d1,doubl 阅读全文
posted @ 2018-01-02 19:44 地表最强队队员 阅读(514) 评论(0) 推荐(0)
摘要:/** * Merge_Sort: 归并排序的递归实现 * 注:算法导论上给出的合并排序算法 * 递归过程是将待排序集合一分为二, * 直至排序集合就剩下一个元素为止,然后不断的合并两个排好序的数组 * T(n) = O(nlgn)**/#include <stdio.h>#define LEN 8 阅读全文
posted @ 2018-01-01 21:08 地表最强队队员 阅读(250) 评论(0) 推荐(0)
摘要:#include <stdio.h>#include <string.h>int a[20]={6,1,5,4,8,3,9,12,51,11,15,14,13,25,69,47,56,74,26,78};void quicksort(int left,int right){ if(left>righ 阅读全文
posted @ 2018-01-01 20:24 地表最强队队员 阅读(175) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <string.h> void add(char d1[],char d2[],char sum[]) { int i,j,carry=0,inx,idx1,idx2,t; inx=0; idx1=strlen(d1)-1; idx2=strl 阅读全文
posted @ 2018-01-01 16:27 地表最强队队员 阅读(295) 评论(0) 推荐(0)
摘要:#include <stdio.h>#include <string.h>#include <conio.h>#include <math.h> void compute(char d1[],char d2[],char sum[]){ int result[100]={0},i,j,inx=0,i 阅读全文
posted @ 2018-01-01 14:19 地表最强队队员 阅读(331) 评论(0) 推荐(0)