typedef struct{
int data[100];
int last;//最后元素的下标
} SeqList;
int seek_like(SeqList &List,int num){
int i=0,j;
while(num > List->data[i] && i<=List->last) i++;
if(i==List->last) return i;
if(List->data[i]-num < num – List->data[i-1]) return i;
if(List->data[i]-num > num – List->data[i-1]) return i-1;
}