提交时间:2026-01-18 19:33:30
运行 ID: 82985
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int s[n]; int f=0; int w=1; for(int i=0;i<n;++i){ cin>>s[i]; if(s[i]%2==1) f+=s[i]; else w*=s[i]; } cout<<f<<" "<<w; return 0; }