The green internet café X83787


Statement
 

pdf   zip

html
Public test cases
  • Input

    3
    1 4
    2 5
    3 6
    

    Output

    3
    
  • Input

    5
    1 2
    2 3
    3 4
    4 5
    5 6
    

    Output

    1
    
  • Input

    7
    13 19
    6 18
    5 6
    8 9
    2 9
    10 11
    12 15
    

    Output

    3
    
  • Information
    Author
    HP Codewars BCN
    Language
    English
    Official solutions
    Python
    User solutions
    C++ Haskell Python