시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 1024 MB | 357 | 220 | 196 | 61.830% |
Lotte is competing in a programming contest. Her team has already solved $k$ out of the $n$ problems in the problem set, but as the problems become harder, she begins to lose focus and her mind starts to wander.
She recalls hearing the judges talk about the difficulty of the problems, which they rate on an integer scale from $0$ to $100$, inclusive. In fact, one of the judges said that "the problem set has never been so tough, the average difficulty of the problems in the problem set is $d$!"
She starts thinking about the problems her team has solved so far, and comes up with an estimate $s$ for their average difficulty. In hope of gaining some motivation, Lotte wonders if she can use this information to determine the average difficulty of the remaining problems.
The input consists of:
Assuming Lotte's estimate is correct, output the average difficulty of the unsolved problems, or "impossible
" if the average difficulty does not exist. Your answer should have an absolute or relative error of at most $10^{-6}$.
2 1 70 50
90.00
10 3 80 90
75.7142857
2 1 100 10
impossible
ICPC > Regionals > Europe > Northwestern European Regional Contest > NWERC 2020 C번