Type: Default File IO: score 1000ms 256MiB

成绩

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

牛牛最近学习了 C++ 入门课程,这门课程的总成绩计算方法是:

总成绩=作业成绩 ×20%+\times 20\%+ 小测成绩 ×30%+×30\%+ 期末考试成绩 ×50%\times 50\%

牛牛想知道,这门课程自己最终能得到多少分。

输入格式

三个非负整数 AABBCC,分别表示牛牛的作业成绩、小测成绩和期末考试成绩。相邻两个数之间用一个空格隔开,三项成绩满分都是 100100 分。

输入格式

一个整数,即牛牛这门课程的总成绩,满分也是 100100 分。

100 100 80
90

样例说明1

牛牛的作业成绩是 100100 分,小测成绩是 100100 分,期末考试成绩是 8080 分,总成绩是 $100 \times 20 \% +100 \times 30\%+80 \times 50\%=20+30+40=90$。

60 90 80
79

样例说明2

牛牛的作业成绩是 6060 分,小测成绩是 9090 分,期末考试成绩是 8080 分,总成绩是 $60 \times 20\%+90 \times 30\%+80 \times 50 \%=12+27+40=79$。

数据说明

对于 30%30\% 的数据,A=B=0A=B=0

对于另外 30%30\% 的数据,A=B=100A=B=100

对于 100%100\% 的数据,0A,B,C1000≤A,B,C≤100A,B,CA,B,C 都是 1010 的整数倍。

noip2017普及组真题

Not Attended
Status
Done
Rule
OI
Problem
4
Start at
2024-9-27 18:00
End at
2024-12-20 2:00
Duration
3 hour(s)
Host
Partic.
0