题目描述
Problem Background
NOIP2017 Junior Group T1
Problem Description
Cow recently took a C++ introductory course. The final grade for this course is calculated as follows:
$$ \text{Final Grade} = \text{Homework Grade} \times 20\% + \text{Quiz Grade} \times 30\% + \text{Final Exam Grade} \times 50\% $$
Cow wants to know what his final grade for this course will be.
Input Format
Three non-negative integers $A, B, C$, representing Cow's homework grade, quiz grade, and final exam grade, respectively. Each number is separated by a space, and the maximum score for each is 100 points.
Output Format
An integer representing Cow's final grade for the course, with a maximum score of 100 points.
Sample Input and Output
Sample Input #1
100 100 80
Sample Output #1
90
Sample Input #2
60 90 80
Sample Output #2
79
Notes
Sample 1 Explanation
Cow's homework grade is 100 points, quiz grade is 100 points, and final exam grade is 80 points. The final grade is $100 \times 20\% + 100 \times 30\% + 80 \times 50\% = 20 + 30 + 40 = 90$.
Sample 2 Explanation
Cow's homework grade is 60 points, quiz grade is 90 points, and final exam grade is 80 points. The final grade is $60 \times 20\% + 90 \times 30\% + 80 \times 50\% = 12 + 27 + 40 = 79$.
Data Notes
For 30% of the data, $A = B = 0$.
For another 30% of the data, $A = B = 100$.
For 100% of the data, $0 \leq A, B, C \leq 100$ and $A, B, C$ are multiples of 10.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分