楼主,问下第四题: if(maxI<0){ int i; for(i=0;i<N;i++){ if(num[i]>K) break; } maxI=i; minI=i; ans++; N++; } 意思是给出的K不一定在数组里面吗?题目有没有说K一定在数组内来着……