P8839 [Chuanzhi Cup #4 Preliminary] Computer Organization Score
Description
The Computer Organization course at Hualishu University of Science and Technology (HUST) is about to release grades. You now need to calculate how your Computer Organization score is made up.
Specifically, the Computer Organization score consists of three parts: attendance $t$, homework $h$, and exam $e$. The total score $w$ is calculated by the following formula:
$$w=t \times 20\% +h \times 30\%+e \times 50\%$$
We guarantee that $0 \leq h,e,t \leq 100$.
Now you are given your $t,h,e$, and you want to compute your total score.
Due to the special rules of the academic system, the final score must be an integer, and it is obtained by **directly removing the fractional part**.
Input Format
One line with three integers, representing $t,h,e$.
Output Format
One line with one integer, which is $w$.
Explanation/Hint
Translated by ChatGPT 5