Adding consecutives and precedents X39538


Statement
 

pdf   zip

html
Public test cases
  • Input

    1
    5
    

    Output

    20 -10
    
  • Information
    Author
    HP Codewars BCN
    Language
    English
    Official solutions
    C++ Python
    User solutions
    C C++ Haskell Java Python