#include #include int sortfnc(const void *a,const void *b){ if(*(long*)a == *(long*)b){ return 0; } if(*(long*)a < *(long*)b) {return -1; } return 1; } int main(void) { long int n,x[100000],i,c=1000001; scanf("%ld",&n); for(i=0;i