POJ 2136
来源:互联网 发布:ipad翻墙软件 编辑:程序博客网 时间:2024/06/02 13:23
#include<iostream>#include<cstring>#include<cstdio>using namespace std;#define max 1000char data[4][max];int main(){ int i,j,k,m,n,t; for(i=0; i<4; i++) strcpy(data[i],"\0"); int num[max]; memset(num,0,max); for(i=0; i<4; i++) { gets(data[i]); } for(i=0; i<4; i++) { for(j=0; j<strlen(data[i]); j++) { if(data[i][j]>='A'&&data[i][j]<='Z') { // cout<<data[i][j]<<" "<<data[i][j]-'A'<<endl; num[data[i][j]-'A']++; } } } t=num[0]; for(i=1; i<26; i++) { if(num[i]>t) t=num[i]; } // cout<<t<<endl; for(j=t; j>0; j--) { for(i=0; i<26; i++) { if(num[i]>=j) cout<<"*"; else cout<<" "; if(i!=25) cout<<" "; } cout<<endl; } for(i=0; i<26; i++) { { char ch=i+'A'; if(ch!='Z') cout<<ch<<" "; else cout<<ch<<endl; } } //cout<<endl; return 0;}
0 0
- poj 2136
- POJ 2136
- POJ 2136
- poj 2136 Vertical Histogram
- POJ 2136 Vertical Histogram
- POJ 2136
- POJ-2136 Vertical Histogram
- POJ 2136 解题报告
- POJ 2136 Vertical Histogram
- POJ 2136 Vertical Histogram
- poj 2136 Vertical Histogram
- POJ
- poj
- POJ
- POJ
- poj
- poj
- POJ
- tomcat单独启动正常,在myeclipse中启动时加载不完也不报错
- 只有dll,生成lib、def等中间文件
- java.net.URLConnection
- BoneCP主要配置参数
- websocket最新协议的握手实现
- POJ 2136
- 通过过滤器选择对象
- php类属性成员和方法重载
- posgresql postgres_fdw使用
- lua 匹配
- css !important用法以及CSS样式使用优先级判断
- C#中操作Excel单元格合并
- 数据库中空字符串和NULL值两个概念的区别
- HttpOnly介绍以及防止XSS攻击时的作用(转)