#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
#define ll long long
int main() {
int n,d;
double e;//阈值
int ke=0,kong=0;//数量
cin>>n>>e>>d;
for(int i=0; i<n; i++) {
int count;
cin>>count;
double in;
int days=0;
for(int j=0; j<count; j++) {
cin>>in;
if(in<e) {
days++;
}
}
if(days>(double)count/2 && count>d) {
kong++;
} else if(days>(double)count/2) {
ke++;
}
}
//cout << ke << " " << kong << '\n';
printf("%.1lf%% ",(double)ke/n*100);
printf("%.1lf%%",(double)kong/n*100);
return 0;
}
标签:count,1053,空置率,int,double,days,kong,住房
From: https://www.cnblogs.com/chengyiyuki/p/18144230