• 2022-06-07
    写输出结果#include "stdio.h"int  binary(int  x, int a[], int n){   int  low=0,high=n-l,mid;    while(low<=high)   {     mid=(low+high)/2;     if(x>a[mid])  high=mid-l;     else  if(x=0 && t>a[j])   {   a[j+1]=a[j]; j--;}           a[j+1]=t;        }      printf("%d\n",binary(3,a,5));   }
  • 举一反三