#include #include typedef unsigned long long uint64; uint64 readClockTick() { unsigned int h,l; __asm__ ( "xor %%eax, %%eax \t \n" "cpuid \t \n" "rdtsc \t \n" "mov %%edx, %0 \t \n" "mov %%eax, %1 \t \n" :"=m"(h), "=m"(l) :); return ((uint64)h<<32)+l ; } main() { int *a; int i,j,key,n; uint64 start,end; printf("input the number of inputs\n"); scanf("%d",&n); a = (int *)malloc(n*sizeof(int)); for(i=1;i=0 && a[i]