第三题求答案,这样过了67%
import java.util.*;
public class Test3 {
	// 2 3 -2 4  判断这个数组的最大连续乘积
	//要判断负号的连续
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
	    String[] str=sc.nextLine().split(" ");
	    int[] arr=new int[str.length];
	    int temp=1;
	    int sum=Integer.MIN_VALUE;
	    for(int i=0;i<str.length;i++) {
	    	arr[i]=Integer.valueOf(str[i]);
	    	temp=arr[i]*temp;
	    	if(temp>sum) {
	    		sum=temp;
	    	}
	    	if(temp<0) {
	    		temp=1;
	    	}
	    }
	    System.out.println(sum);
	    sc.close();
	}  
}