摘要: #includeusing namespace std;int maxi(int A[],int low,int high){ if(low==high) return A[low]; int low_max=maxi(A,low,(low+high)/2); int high_max=maxi(A,(low+high)/2+1,high); if(low_max>high_max) return low_max; else return high_max;}int main(){ int A[]={5,10,9,7... 阅读全文
posted @ 2013-09-20 10:14 开心成长 阅读(428) 评论(0) 推荐(0) 编辑