package javacode; import java.util.Scanner; public class yukicoder2 { public static void main(String args[]){ Scanner cin = new Scanner(System.in); int target = cin.nextInt(); int tmp[] =new int[target]; int result=0; for(int i=0;i0){ result = tmp[k]; }else if(tmp[k]==0){ }else{ if(tmp[k]==1){ result += tmp[k]; }else{ result *= tmp[k]; } } } System.out.println(result); } }