How far away from our friends? X39719


Statement
 

pdf   zip

html

Input The input will be a sequence of friends with their distance and the mean speed, ending with a dot.

Output The output of the program is the list of friends and the time it takes for the message to arrive to them, ordered from shortest to longest.

Public test cases
  • Input

    Peter 20 1
    Jamie 6 3
    Eli 20 4
    Anna 30 3
    .
    

    Output

    Jamie 2
    Eli 5
    Anna 10
    Peter 20
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    C++
    User solutions
    C++ Python