欢迎使用CSDN-markdown编辑器

来源:互联网 发布:大学蹭课软件 编辑:程序博客网 时间:2024/05/16 05:52

华为在线软件训练与测试题
名字的漂亮度,非原创。

include

include

include

using namespace std;
const int num_all=256;
bool cmp(const int a,const int b){
return a > b;
}
int beautiful_degree(string str)
{
int num=str.length();
if(num==0)return 0;
int arr[num_all]={0};
for(int i=0;i

0 0
原创粉丝点击