#include<stdio.h>
static int c = 0;
int Find(int sum,int pos[],int in[],int N,int length){
int sum_ = 0,i,i_;
int count = 0;
for(i = 0,i_ = 0;i < N;i++){
if(!sum_){
i = i_;
i_++;
}
count++;
sum_ += pos[i];
if(sum_ == sum&&count == length)
break;
else if((count == length&&sum_ != sum)||sum_ > sum)
sum_ = count = 0;
}
for(i_ = 0;pos[i] != in[i_];i_++);
return i_;
}
void gx(int low,int high,int mid,int pos[],int in[],int N){
int sum = 0,i;
c++;
if(c != N)
printf("%d ",in[mid]);
else
printf("
怎样把下列c语言代码转变为Java语言
最新推荐文章于 2022-10-21 16:06:51 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)