#P5082. 成绩
成绩
Description
Xiao Ben’s final exams have ended.
His grades will be released soon.
You are given an exam score table, for example:
| Subject / Score Type | Chinese | Math | English |
|---|---|---|---|
| Full score | |||
| Actual score |
Of course, the teachers at school think that entering so many grades makes it hard to calculate, so they want you to compute a comprehensive grade evaluation.
The comprehensive grade evaluation is defined as: $(\text{sum of full scores} \times 3 - \text{sum of actual scores} \times 2) \div \text{sum of points deducted for each subject}$.
Xiao Ben wants you to output his comprehensive grade. Can you do it?
Input Format
The first line contains an integer , the total number of subjects.
The second line contains integers , where is the full score of the -th subject.
The third line contains integers , where is Xiao Ben’s actual score in the -th subject.
Output Format
Output one number in a single line, representing his comprehensive grade. Keep digits after the decimal point.
3
10 10 10
5 5 5
4.000000
Hint
For % of the testdata, the data is the sample.
For % of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号