The longest kingdom X76697


Statement
 

pdf   zip

html
Public test cases
  • Input

    4
    Edward VII 22/01/1901 06/05/1910
    George V 06/05/1910 20/01/1936
    Edward VIII 20/01/1936 11/12/1936
    George VI 11/12/1936 06/02/1952
    

    Output

    Edward VII ruled for 3391 days
    George V ruled for 9390 days
    Edward VIII ruled for 326 days
    George VI ruled for 5535 days
    
  • Information
    Author
    HP Codewars BCN
    Language
    English
    Official solutions
    Python
    User solutions
    C++ Python