시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 (추가 시간 없음) | 2048 MB | 247 | 152 | 129 | 64.179% |
You are working as a software developer for the Bug Acquisition Programming Company. They developed a specific piece of software called Program C that they sell to their clients. For the past weeks, you have been working on optimising a specific function foo
in the main code path in Program C. You have made it a lot faster and would like to show off to your boss about it.
Your IDE has a nice tool that allows you to profile your code and tell you what percentage of the total running time foo
takes. You can run this on the version before your change and after your change. However, you think it looks a lot cooler if you can just tell your boss how much faster you have made foo
itself.
The input consists of:
foo
took before optimising and $y$ the percentage of the total running time it took after optimising.Output the factor of how much faster foo
got after your optimization.
Your answer should have an absolute or relative error of at most $10^{-6}$.
75 50
3.0
50 75
0.3333333333333333
50 50
1.0
ICPC > Regionals > Europe > Northwestern European Regional Contest > Benelux Algorithm Programming Contest > BAPC 2022 Preliminaries F번