| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 75793 | sh25_zhuwy | 奇数项的和及偶数项的积 | C++ | Accepted | 0 MS | 244 KB | 341 | 2025-12-10 14:45:31 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a[n]; int sum=0,k=1; for(int i=0;i<n;i++) { cin>>a[i]; if(i%2==0) { sum+=a[i]; } else { k*=a[i]; } } cout<<sum<<" "<<k; return 0; }