#P91. 练16.3 选择题判定
练16.3 选择题判定
Description
Due to the pandemic, the Youth Creative Programming C++ provincial competition was held online. There were 5 multiple-choice questions, each worth 30 points, for a total of 150 points. Each question is worth 30 points if answered correctly, and 0 points if answered incorrectly or left unanswered.
Note: The following is only a hypothetical scenario and does not represent the actual answers to the competition's multiple-choice questions. It is only an assumption for this programming problem.
Assuming the correct answers are "DCBAD", can you determine the contestant's total score based on their submission? The contestant submits a string of 5 characters representing their choices. The string can only contain the following 5 characters: "D", "C", "B", "A", "E". Here, "A", "B", "C", "D" represent the contestant's chosen options, while "E" represents an unanswered question.
Input Format
A string of 5 characters submitted by the contestant.
Output Format
An integer representing the contestant's total score for the multiple-choice questions.
Sample
DCEAA90