[恢]hdu 2006

2011-12-12 03:53:00

地址:http://acm.hdu.edu.cn/showproblem.php?pid=2006

题意:中文题

代码:

# include <stdio.h>


int main ()
{
int n, num, mul ;
while (~scanf ("%d", &n))
{
mul = 1 ;
while (n--)
{
scanf ("%d", &num) ;
if(num&1) mul*=num ;
}
printf ("%d\n", mul) ;
}
return 0 ;
}



posted @ 2012-01-06 14:14  Seraph2012  阅读(136)  评论(0编辑  收藏  举报