| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82985 | sh25_zhuhy | 奇数项的和及偶数项的积 | C++ | 解答错误 | 0 MS | 240 KB | 275 | 2026-01-18 19:33:30 |
#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; }