摘要:
http://ac.jobdu.com/problem.php?cid=1040&pid=19题目描述:输入数组长度 n输入数组 a[1...n]输入查找个数m输入查找数字b[1...m]输出 YES or NO 查找有则YES 否则NO 。输入:输入有多组数据。每组输入n,然后输入n个整数,再输入m,然后再输入m个整数(1
#include using namespace std; const int N=103;
int a[N]; int binarySearch(int num, int low, int high)
{ if(low>high) return -1; i 阅读全文
posted @ 2013-03-02 12:08
cjweffort
阅读(165)
评论(0)
推荐(0)