摘要: 1 #include 2 #include 3 using namespace std; 4 const int N=100; 5 int tower[N][N],f[N][N]={0},n; 6 void upMax(int &a,const int &b){ 7 a=(a>b?a:b)... 阅读全文
posted @ 2015-09-04 17:17 jiguojing 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 void quick_sort(int *num,int l,int r){ 4 int i=l,j=r,mid=num[(l+r)/2]; 5 while(imid) j--; 8 if(il) quick_sort(num... 阅读全文
posted @ 2015-09-04 16:45 jiguojing 阅读(630) 评论(1) 推荐(0) 编辑