xkg821 @ 2022-03-30 14:49:26
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,a,s,e,b=0,c=0;
cin>>n;
for(int i=1;i<=n;i++){
cin>>a;
if(a%19==0){
s++;
c+=a;
}else{
e++;
b+=a;
}
}
printf("%.1lf",c*1.0/s);
cout<<" ";
printf("%.1lf",b*1.0/e);
}
by L_cm_C5H6 @ 2022-03-30 14:55:15
模数是第二个输入数不是常数