diff --git a/QUSTOJ/1626.cpp b/QUSTOJ/1626.cpp new file mode 100644 index 0000000..00b959a --- /dev/null +++ b/QUSTOJ/1626.cpp @@ -0,0 +1,81 @@ +#include +#include +#include +using namespace std; +int data[4]; +char buff[32]; +char cmdline[10240]; +int strlenx(const char* inc) +{ + int i=0; + while(inc[i]!='\0') i++; + return i; +} +//Kiritow's Quick sort function : written on Nov. 2ND ,rewritten on Nov. 10TH +//Updated Version : QuickSort (Build 2) +template +void quicksort(T* a,int left,int right) +{ + if(left>=right) return; + T keyvalue=a[left]; + int i=left,j=right; + while(i=keyvalue) + { + j--; + } + while(i