##只能过第二个点,,但是在不知道代码有什么问题##
#include<stdio.h>
#include<string.h>
int main()
{
int i,n,a[26],max,j;
for(i=0;i<26;i++)a[i]=0;
max=0;
char input;
scanf("%c",&input);
for(int i = 0; i < 4; i ++)
{
while(input != '\n')
{
if(input <= 'Z' && input >= 'A')
a[input - 'A'] ++;
scanf("%c",&input);
}
if(i < 3)
scanf("%c",&input);
}
for(i=0;i<26;i++)
{
if(a[i]>max)
{
max=a[i];
}
}
for(int j = max; j > 0; j --)
{
for(int i = 0; i < 26; i ++)
{
if(j - a[i] > 0)
printf(" ");
else
printf("*");
if(i < 25)
printf(" ");
}
printf("\n");
}
printf("A B C D E F G H I J K L M N O P Q R S T U V W X Y Z");
}