| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 292 | 53 | 34 | 16.190% |
In order to receive his propedeutic degree cum laude, the weighted average of all of Eddie's grades must be at least 8.0. Of course he must also have passed all of his courses, which requires a grade of at least 5.8. With only one exam to go, Eddie is wondering if he still has a shot at achieving cum laude.
Given all of the grades for Eddie's previous courses and their weights, and the weight of the final exam, check if Eddie can still obtain his degree cum laude. If he can, output the grade Eddie requires for his final exam to achieve this. Otherwise output IMPOSSIBLE.
If Eddie can achieve cum laude, print the grade $g$ $(1 \leq g \leq 10)$ he has to achieve on his final exam, rounded to 1 decimal. Otherwise print IMPOSSIBLE.
3 3 8.0 2 7.0 1 7.0 4
9.7
2 4 8.0 2 6.1 1 8.3 1 7.1 3
IMPOSSIBLE