AlgoLensArena
ContestlərProblemlərOtaqlar
Vizualizator
← Məsələlər

DAPC22-052.Fastestest Function

Medium · 1 s · 256 MB

  • icpc
  • dapc
  • 2022

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.

Giriş formatı

The input consists of:

• One line with two integers xxx and yyy (0<x,y<1000 < x, y < 1000<x,y<100), where xxx is the percentage of the total running time that foo took before optimising and yyy the percentage of the total running time it took after optimising.

Çıxış formatı

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−610^{-6}10−6.

Qeyd

Source: Delft Algorithm Programming Contest 2022 · Author: Ragnar Groot Koerkamp · License: CC BY-SA 4.0 · Original: https://dapc.wisv.ch · Statement adapted for AlgoLens and shared under the same license.

Nümunələr

Giriş #1

75 50

Çıxış #1

3.0

Giriş #2

50 75

Çıxış #2

0.3333333333333333

Giriş #3

50 50

Çıxış #3

1.0