mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
16 lines
282 B
C++
16 lines
282 B
C++
|
#include <stdio.h>
|
||
|
int main(void)
|
||
|
{
|
||
|
int n, i, s, t;
|
||
|
while (scanf("%d", &n) != EOF)
|
||
|
{
|
||
|
for (s = 1, i = 0 ; i < n ; i++)
|
||
|
{
|
||
|
scanf("%d", &t);
|
||
|
if (t & 1) s *= t;
|
||
|
}
|
||
|
printf("%d\n", s);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|