摘要:
思路: 1、输入:数组长度n,待查找的有序数组a[],要找的元素key 2、输出:待查找元素在数组中的位置,若不存在返回-1 3、实现:三个指针,left、mid、right 1 #include<stdio.h> 2 int binarySearch(int a[],int key,int n); 阅读全文
posted @ 2019-04-22 22:42
cxc1357
阅读(191)
评论(0)
推荐(0)
摘要:
程序: 1 #include<stdio.h> 2 int main() { 3 int i,n,*result; 4 scanf("%d",&n); 5 int shuffle[54],card1[54],card2[54]; 6 result = n%2==0?card1:card2; 7 fo 阅读全文
posted @ 2019-04-22 15:59
cxc1357
阅读(243)
评论(0)
推荐(0)

浙公网安备 33010602011771号