mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
ddd34a4f1c
2000-2099
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;
|
|
}
|