摘要: 1.输入一组有序数列; 2.每次查找序列的中间位置并与目标数比较; 3.依据比较缩小数列,直到找到目标数或数列长度为1; 4.输出; #include<iostream>using namespace std; int n,t,flag; int a[100];int f(int l, int r) 阅读全文
posted @ 2023-04-18 12:20 The-rich 阅读(22) 评论(0) 推荐(0)