```cpp
#include<iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main(){
//freopen("D:\\text.txt","r",stdin);
char a[73],b[73],c[73],d[73],m[300]={0};
int s[27]={0},n=0,max=0;
gets(a); gets(b); gets(c); gets(d);
strcat(m,a); strcat(m,b); strcat(m,c); strcat(m,d);
for(int j='A';j<='Z';j++){
for(int i=0;i<strlen(m);i++){
if(m[i]==j){
s[n]++;
}
}
n++;
}
for(int i=0;i<26;i++){
if(s[i]>max) max=s[i];
}
for(int i=max;i>0;i--){
for(int j=0;j<26;j++){
if(j!=25){
if(s[j]>=i){
cout<<"* ";
}
else{
cout<<" ";
}
}
else {
if(s[j]>=i){
cout<<"*";
}
else{
cout<<" ";
}
}
}
cout<<endl;
}
for(int i='A';i<='Z';i++){
if(i=='Z') cout<<"Z";
else printf("%c ",i);
}
return 0;
}
最后一个点RE了
```
by fletmer @ 2017-07-26 12:20:00