#C2255. Pace Calculator

    ID: 45551 Type: Default 1000ms 256MiB

Pace Calculator

Pace Calculator

In this problem, you are given the distance of a run in kilometers and the time taken in minutes. Your task is to calculate the running pace, which is defined as the time taken per kilometer. The formula for the pace is given by:

\( pace = \frac{time}{distance} \) minutes/km

Round the result to two decimal places and output it in the format "X.XX minutes/km". If either the distance or time is less than or equal to zero, your program should report an error.

Note: Input will be provided via standard input (stdin) and output should be printed to standard output (stdout).

inputFormat

The input consists of two space-separated values provided on a single line:

  • A floating-point number representing the distance in kilometers.
  • An integer representing the time in minutes.

Example: 10.0 50

outputFormat

Output the pace in the following format: X.XX minutes/km, where X.XX is the pace rounded to two decimal places.

## sample
10.0 50
5.00 minutes/km