#B3795. Final Exam Evaluation
Final Exam Evaluation
Final Exam Evaluation
In this problem, student A has completed his final exams in three subjects: Chinese, Mathematics, and English. There are two evaluation criteria at his school:
-
Traditional Evaluation: The student passes if there is at most one subject with a score lower than .
-
Featured Evaluation: Each subject has a weight. The final score for a subject is computed as score (\times) weight. The overall score is the weighted average defined as:
[ \text{Overall Score} = \frac{score_1 \times weight_1 + score_2 \times weight_2 + score_3 \times weight_3}{weight_1 + weight_2 + weight_3} ]
The student is considered to have passed this evaluation if the overall score is not lower than .
Given the scores and weights for each subject, determine whether the student passes both evaluation systems. Output Yes
if he passes both criteria; otherwise, output No
.
inputFormat
Input consists of a single line containing six space-separated integers:
score1 weight1 score2 weight2 score3 weight3
where scorei
represents the score of the i-th subject (Chinese, Mathematics, English) and weighti
represents its corresponding weight.
outputFormat
Output a single line: Yes
if the student passes both the traditional and the featured evaluation criteria, otherwise No
.
sample
70 2 50 4 60 3
No