Files
NJUST-OJ/2006.cpp
2018-07-31 23:21:54 +08:00

14 lines
242 B
C++

#include <iostream>
using namespace std;
int main(){
int a,b,o;
while(cin>>a){
o = 1;
for(int i = 0;i<a;i++){
cin >> b;
o *= b%2==0?1:b;
}
cout << o <<endl;
}
return 0;
}