#include<iostream> //#include<cmath> using namespace std; int main() { int n,x,sum; while( cin >> n ) { sum = 1; for( int i = 0;i < n;i ++) { cin >> x; if( x % 2 != 0) { sum *= x; } } cout << sum << endl; } system("pause"); }
hdoj2006
最新推荐文章于 2022-07-02 23:24:27 发布