交这个:
```cpp
#include<bits/stdc++.h>
using namespace std;
string a;
int m,s[30];
int main(){
for(int j=1;j<=4;j++){
getline(cin,a);
for(int i=0;i<a.size();i++){
if('A'<=a[i]&&a[i]<='Z'){
s[a[i]-'A']++;
m=max(s[a[i]-'A'],m);
}
}
}
for(int i=m;i>=1;i--){
for(int j=0;j<26;j++){
if(s[j]>=i){
cout<<"* ";
}
else{
cout<<" ";
}
}
cout<<endl;
}
for(int i=0;i<26;i++){
cout<<char(i+'A')<<' ';
}
return 0;
}
```
by little_cindy @ 2021-07-03 11:35:26
[谢啦!](https://www.luogu.com.cn/record/52317459)
by 轮回·天照 @ 2021-07-03 11:36:36