07 2022 档案

摘要:#include<stdio.h> int M_search(int A[],int B[],int n){ int s1=0,d1=n-1,m1,s2=0,d2=n-1,m2; while(s1!=d1||s2!=d2){ m1=(s1+d1)/2; m2=(s2+d2)/2; if(A[m1]= 阅读全文
posted @ 2022-07-20 11:30 弈星 阅读(73) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h> void Reverse(int R[],int from,int to){ int i,temp; for(i=0;i<(to-from+1)/2;i++){ temp=R[from+i]; R[from+i]=R[to-i]; R[to-i]=temp; } 阅读全文
posted @ 2022-07-16 21:35 弈星 阅读(10) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示