-->
当前位置:首页 > 题库

PROGRAMMING:Character swallowing monster

Luz5年前 (2021-05-10)题库471
Little monster It seems that the teacher exposed his age...)
There is a little monster that always changes or swallows some input characters.
concrete:
*For upper case letters, change to corresponding lower case letters for output
*For lowercase letters, change to the corresponding letter ordinal number (the letter 'a' starts from '1') for output
*For space character, change to asterisk '*' character output
*The other characters are swallowed directly~
Now, for the input line of characters, give the results after changing and swallowing, and count the total number of characters, the number of digital characters swallowed by the little monster, and the number of other characters.
###Input format:
Input all kinds of characters in one line (end of line with newline character), and the total number of characters is no less than '1' and no more than '2000'.
###Output format:
The output is two lines,
First, the results of changing and swallowing characters are given and output on the first line,
Then count the total number of input characters' n ', the number of swallowed digital characters'd', and the number of swallowed other characters't ', and output them in the second line with space interval.
###Input example:
```in
ABC xyz 123 ?!
```
###Output example:
```out
abc*242526**
14 3 2
```







answer:If there is no answer, please comment