#include<stdio.h> int main() { int n=0; while(scanf("%d",&n)!=EOF) { int s=1; int temp; for(int i=0;i<n;i++) { scanf("%d",&temp); if(temp%2!=0) s*=temp; } printf("%d\n",s); } return 0; }
HDoj 2006 求奇数的乘积
原文:https://www.cnblogs.com/wzmm/p/12487421.html