活动地址:牛客春招刷题训练营 - 编程打卡活动 Easy 记负均正 简要题意 给 个整数,求其中负数个数和正数均值。 Solution 记录正负数个数与正数和即可。 Code void R() { int n,pos=0,neg=0,sum=0; cin>>n; for (int i=0;i<n;i++) { int x; cin>>x; if (x<0) neg++; if (x>0) pos++,sum+=x; } cout<<neg<<' '; if (pos) cout<<fixed<<setp...