Speed trap

Input

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

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