poj2388 快速排序 模板题

/** \brief poj2388
 *
 * \param date 2014/8/5
 * \param state AC
 * \return memory  time
 *   qsort 784K    110ms
 *   ksort 780K    172ms
 */

#include 
#include 
#include 
#include 

using namespace std;

const int MAXN=10000;
int Arr[MAXN];

/*
bool Comp(const int& a,const int& b)
{
    if(a!=b)return ab;
}
*/
int Comp(const void* a,const void* b)
{
    return *(int* )a-*(int* )b;
}

void ksort(int l,int h,int a[])
{
    if(hp && a[h]>=a[p]);
        if(l>Arr[i];
        }
        //
        //qsort(Arr,N,sizeof(Arr[0]),Comp);
        //cout<

你可能感兴趣的:(排序)