#include<bits/stdc++.h>
using namespace std;
map<string,int>a;
int main()
{
int b,c,d[10005],h=0;string f,g[10005],e[10005];
cin>>b;
while(b--)
{
cin>>f;
a[f]=1;
}
cin>>c;
for(int i=1;i<=c;i++)
{
cin>>g[i]>>d[i];
h=h+d[i];
}
h=h/c;
int y=0;
for(int j=1;j<=c;j++)
{
if(a[g[j]]==0&&d[j]>h)
{
e[y]=g[j];
y++;
}
}
sort(e,e+y);
for(int l=0;l<y;l++)
{
cout<<e[l]<<endl;
}
if(y==0)
cout<<"Bing Mei You";
return 0;
}
L2-019 悄悄关注 (25 分)(天梯赛)
最新推荐文章于 2024-02-17 11:32:10 发布