Speed trap

Input

The input is a series of records, ending with the # character.
Each record of the speed cameras has 3 values:

- The initial letter of the city name (W for Whynot or Z for Zzyzx)

- The measured speed of the car, expressed in mph (miles per hour)

- The limit over which there is a law infringement

Output

The output is the number of fines corresponding to each city, followed
by a sentence saying which one is the winner of the award (see the
sample output below). If both cities have the same amount of fines, the
script will print “Whynot and Zzyzx inhabitants are equally safe at
driving”.

Problem information

Author: HP CodeWars

Generation: 2026-01-25T13:29:13.409Z

© Jutge.org, 2006–2026.
https://jutge.org
