This commit is contained in:
xice09
2018-07-31 23:21:54 +08:00
parent 36e132edbc
commit 36f2ab51ab
10 changed files with 176 additions and 0 deletions

14
2006.cpp Normal file
View File

@@ -0,0 +1,14 @@
#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;
}