import java.util.Scanner;public class Main{ public static void main(String args[]){ Scanner scan = new Scanner(System.in); while(scan.hasNext()) { String str[] = scan.nextLine().split(" "); int n = Integer.parseInt(str[0]); int num[] = new int[n]; for(int i=1; i<str.length; i++) { num[i-1] = Integer.parseInt(str[i]); } int sum = 1; for(int i=0; i<num.length; ++i) { if(num[i]%2 == 1) sum *= num[i]; } System.out.PRintln(sum); } }}
新闻热点
疑难解答