#B4255. Homework Score Comparison
Homework Score Comparison
Homework Score Comparison
In this problem, you are given ( N ) assignments. For the ( i^{th} ) assignment, the maximum score is ( a_i ). Two students, Coco and Duo, obtained ( b_i% ) and ( c_i% ) of the full score respectively.
Your task is to determine which student has a higher total score across all assignments. The total score for a student is computed as: [ \text{Total Score} = \sum_{i=1}^{N} a_i \times \frac{\text{percentage}}{100} ]
If Coco's total score is higher than Duo's, output "Coco"; if Duo's total score is higher, output "Duo"; otherwise, output "Draw".
inputFormat
The input consists of four lines:
- An integer ( N ) representing the number of assignments.
- ( N ) space-separated integers ( a_1, a_2, \ldots, a_N ) representing the maximum scores for each assignment.
- ( N ) space-separated integers ( b_1, b_2, \ldots, b_N ) where each ( b_i ) represents the percentage score (in percent) that Coco obtained on the ( i^{th} ) assignment.
- ( N ) space-separated integers ( c_1, c_2, \ldots, c_N ) where each ( c_i ) represents the percentage score (in percent) that Duo obtained on the ( i^{th} ) assignment.
outputFormat
Output a single line containing "Coco" if Coco's total score is higher than Duo's, "Duo" if Duo's total score is higher, or "Draw" if both scores are equal.
sample
3
100 100 100
100 50 100
80 100 90
Duo