杭电ACM2006奇数的乘积

最后更新于:2022-04-01 09:47:26

~~~ #include <iostream> using namespace std; int main() { int n,t,x=1; while(cin>>n) { x=1; while (n--) { cin>>t; if(t%2==1) x=x*t; } cout<<x<<endl; } } ~~~
';