//模拟题 #include <iostream> using namespace std; int a,ans,n; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); while(cin>>a) { if(a==0)break; if(a%2==0){ n++; } else ans+=a; } cout<<n<<"\n"<<ans; return 0; } ``
微信直接扫码登录
使用经过邮箱注册的账号密码登录