Time is money X27563


Statement
 

pdf   zip

html
Public test cases
  • Input

    2 4
    MirandaDeEbro 40
    Zaragoza 35
    Juan Leon Burgos 60
    Maria Pamplona Zaragoza 100
    Luis Palencia Barcelona 140
    Ana Tarragona Barcelona 20
    

    Output

    Juan receives 0 euros
    Maria receives 100 euros
    Luis receives 140 euros
    Ana receives 20 euros
    Total loss for train company is: 260 euros
    
  • Information
    Author
    HP Codewars BCN
    Language
    English
    Official solutions
    Python
    User solutions
    C++