Classificaction of sequences (2) P89867


Statement
 

pdf   zip

thehtml

Write a program to tell if a sequence of integer numbers is uniform, strictly increasing, strictly decreasing, increasing, decreasing or none of those.

Input

Input consists of a sequence of integer numbers.

Output

If all the numbers are equal, print “uniform”. Otherwise, if the sequence is strictly increasing or strictly decreasing, tell so. If none of the previous conditions are fulfilled, print “increasing”, “decreasing”, or “nothing” as required.

Public test cases
  • Input

    2 3 5 7
    

    Output

    strictly increasing
    
  • Input

    10 0 -5
    

    Output

    strictly decreasing
    
  • Input

    4
    

    Output

    uniform
    
  • Input

    1 2 4 4
    

    Output

    increasing
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++
    User solutions
    C++