HDU/2006/main.c
Saturneric 0525ffad24 Add.
2020-09-01 00:48:58 +08:00

17 lines
252 B
C

#include <stdio.h>
int main(void){
int numbers = 0;
while(scanf("%d",&numbers) == 1){
int temp = 0, all = 1;
while(temp++ < numbers){
int n = 0;
scanf("%d",&n);
if(n % 2) all *= n;
}
printf("%d\n",all);
getchar();
}
return 0;
}