| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 111 | 55 | 43 | 51.190% |
At the Bottles and Port Company, you produce and bottle only the finest of vintages. To satisfy the desires of your highly exclusive clientele, it is necessary to study what happens to your wines once a new bottle is opened. When that happens, liquids in the bottle immediately start evaporating. The alcohol in the bottle evaporates at a different rate than the other liquids in the bottle, meaning that over time, the delicate balance of the port wine will be disturbed.
Your goal is to compute how the alcohol percentage changes in the days after opening a fresh bottle. By placing the opened bottle in an advanced chemical apparatus, you are able to measure how fast each liquid in the bottle evaporates.
The input consists of:
It is guaranteed that the bottle is not empty after leaving it open for $d$ days (\(d \cdot \Delta_{a} < a\) or \(d \cdot \Delta_{o} < o\)).
Output the alcohol percentage after leaving the bottle open for $d$ days.
Your answer should have an absolute or relative error of at most $10^{-6}$.
2 3 8 1 1
14.2857142857143
5 11 89 2 1
1.17647058823529
10 10 40 1 1
0
10 40 10 0 3
100
ICPC > Regionals > Europe > Northwestern European Regional Contest > Benelux Algorithm Programming Contest > BAPC 2025 Preliminaries B번