跳到正文

李泽影

70029

在洛谷打开
资料、奖项与版本

资料

编号
70029
抓取

https://github.com/Anguei/Luogu-Ac-Comparator #include<iostream> #include<cstdio> #include<cstring> using namespace std; int a[26]; int Max=0; int main() { char w; for(int i=0;i<4;i++) { int k=0; while(cin>>w) { if(w>=‘A’&&w<=‘Z’)a[w-‘A’]++; } } for(int i=0;i<26;i++) { cout<<a[i]; } for(int i=Max;i>=1;i—) { for(int j=0;j<25;j++) { if(a[j]>=i)cout<<”* ”; else cout<<” ”; } if(a[25]>=i)cout<<”* ”; cout<<endl; } for(int i=0;i<25;i++) { cout<<(char)(i+65)<<” ”; } cout<<“Z”; return 0; }

还没有收录这位用户的文章。