1.
#include <iostream>
using namespace std;
int main()
{
int n, a, b, i, x, nrp=0, s=0;
cin >> n >> a >> b;
for (i=1; i<=n; i++)
{
cin >> x;
if ((x>a && x<b) && x>0)
{
nrp++;
s=s+x;
}
}
cout << (float)s/nrp;
return 0;
}
la 2 nu stiu, nu prea are sens cerinta :)