标签:style blog io color sp for on div log
#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; }
标签:style blog io color sp for on div log
原文地址:http://www.cnblogs.com/lonelysky/p/4117520.html