Hide

Problem F
Fastestest Function

/problems/fastestestfunction/file/statement/en/img-0001.png
A flamegraph.

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.

Input

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

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}$.

Sample Input 1 Sample Output 1
75 50
3.0
Sample Input 2 Sample Output 2
50 75
0.3333333333333333
Sample Input 3 Sample Output 3
50 50
1.0

Please log in to submit a solution to this problem

Log in