#include<stdio.h> int main () { #ifdef ONLINE_JUDGE #else freopen ("in.txt","r",stdin); #endif int n,i; while(scanf("%d",&n)!=EOF) { int a[n],s=1; for (i=0;i<n;++i) scanf("%d",&a[i]); for (i=0;i<n;++i) if(0!=a[i]%2) s*=a[i]; printf("%d",s); printf("\n"); } return 0; }
时间: 2024-10-18 06:19:12