시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 2048 MB24715212964.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:

  • One line with two integers $x$ and $y$ ($0 < x, y < 100$), where $x$ is the percentage of the total running time that 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}$.

예제 입력 1

75 50

예제 출력 1

3.0

예제 입력 2

50 75

예제 출력 2

0.3333333333333333

예제 입력 3

50 50

예제 출력 3

1.0

출처

ICPC > Regionals > Europe > Northwestern European Regional Contest > Benelux Algorithm Programming Contest > BAPC 2022 Preliminaries F번

  • 문제를 만든 사람: Ragnar Groot Koerkamp