4 条题解
-
2
#include<bits/stdc++.h> using namespace std; const int in=1e5+10; const int inf=0x3f3f3f3f; #define LL long long LL n,maxn=-inf,y; LL s[30]; string a; int main() { ios::sync_with_stdio(0); cin.tie(0); for(int i=1;i<=4;i++) { getline(cin,a); for(int j=0;j<a.size();j++) { if(a[j]>='A'&&a[j]<='Z') { s[a[j]-64]++; maxn=max(maxn,s[a[j]-64]); } } } for(int i=1;i<=maxn;i++) { for(int j=1;j<=26;j++) { if(s[j]>=maxn-i+1)cout<<"* "; else cout<<" "; } cout<<endl; } for(int i=65;i<=90;i++)cout<<char(i)<<" "; return 0; }
信息
- ID
- 1088
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 5
- 标签
- 递交数
- 390
- 已通过
- 161
- 上传者