c++
2025-04-13 11:09:07
发布于:浙江
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int n,t,s,c,i;
int main(){
cin>>n;
for(i=0;i<n;i++){
cin>>t;
c=1;
if(t%2){
while(t){
s+=t%10;
t/=10;
}
continue;
}
while(t){
c*=t%10;
t/=10;
}
s+=c;
}
cout<<s;
return 0;
}
这里空空如也
有帮助,赞一个