hw--Beauty

Source: Internet
Author: User

Describe

Give a name that consists of 26 strings, which defines the "beauty" of the string as the sum of all its letters "beauty".
Each letter has a "pretty degree", ranging from 1 to 26. No two letters have the same "beauty degree". Letters Ignore case.
Give multiple names to calculate the maximum possible "beauty" for each name.

Knowledge points String
Run time limit 0M
Memory limit 0
Input

An integer n, followed by n names

n A string, each representing a name

Output

Each name may be the most beautiful degree

Sample input 2 Zhangsan Lisi
Sample output 192 101

hw--Beauty

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.