PROGRAMMING:Programming problem: elective course score statistics problem - heboost
On the statistics of students' elective course scores
The results of elective courses are expressed by letters. The rules are: a = 5, B = 4, C = 3, d = 2, e = 1
Write a program to count the score of each student's two elective courses
Input format: the scores of multiple students are separated by Western commas and arranged in one line; Each student's name is in the front, and the grade is in the back, and the spaces are used to separate them
Data statistics: each student's scores of two courses are converted into scores and summed up
Output format: the result is one line, the name is in the front, the total score is in the back, and the spaces between them are separated; Use western commas to separate the records of different students. Note that there is no comma at the end of the final record
###Input format:
The scores of multiple students are separated by Western commas and arranged in one line; Each student's name is in the front, and the grade is in the back, and the spaces are used to separate them
###Output format:
The result is one line, the name is in the front, the total score is in the back, and the spaces between them are separated; Use western commas to separate the records of different students. Note that there is no comma at the end of the final record
###Input example:
Here is a set of inputs. For example:
```in
zs A B,ls A C,ww B C
```
###Output example:
The corresponding output is given here. For example:
```out
zs 9,ls 8,ww 7
```
answer:If there is no answer, please comment
The results of elective courses are expressed by letters. The rules are: a = 5, B = 4, C = 3, d = 2, e = 1
Write a program to count the score of each student's two elective courses
Input format: the scores of multiple students are separated by Western commas and arranged in one line; Each student's name is in the front, and the grade is in the back, and the spaces are used to separate them
Data statistics: each student's scores of two courses are converted into scores and summed up
Output format: the result is one line, the name is in the front, the total score is in the back, and the spaces between them are separated; Use western commas to separate the records of different students. Note that there is no comma at the end of the final record
###Input format:
The scores of multiple students are separated by Western commas and arranged in one line; Each student's name is in the front, and the grade is in the back, and the spaces are used to separate them
###Output format:
The result is one line, the name is in the front, the total score is in the back, and the spaces between them are separated; Use western commas to separate the records of different students. Note that there is no comma at the end of the final record
###Input example:
Here is a set of inputs. For example:
```in
zs A B,ls A C,ww B C
```
###Output example:
The corresponding output is given here. For example:
```out
zs 9,ls 8,ww 7
```
answer:If there is no answer, please comment