HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50964 - Increasing or Decreasing

Section problems

• 50891 - Smallest Number
• 50965 - Draw the Pattern
• 50945 - Bigger or Smaller
• 50946 - Area of Rectangle
• 50949 - Vowel or Consonant
• 50881 - Exchange the Values
• 50937 - Calculate the Average
• 50947 - Calculate the Average
• 50964 - Increasing or Decreasing
• 50948 - Translate Score into Grade
• 51104 - Steel
• 51113 - The Menu
• 51112 - Even Numbers
• 51105 - Currency System
• 51103 - Is it a triangle?
• 51114 - The traveling vehicle
• 50251 - Symmetric matrix

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Increasing or Decreasing

Write a program that asks the user to type N (N>1) integers of an array. The program will then display either the array is “Increasing", “Decreasing", “Constant", or " Increasing and Decreasing".

Input: In the first line you will get N and then in the second line N integer numbers separated by a space.

Output: The message as “Increasing", “Decreasing", “Constant", or " Increasing and Decreasing".

 

Sample Input1:

Sample Input2:

3

5 7 10

5

7 4 6 8 3

Sample Output1:

Sample Output2:

Increasing

Increasing and Decreasing

 

Äëÿ îòïðàâêè ðåøåíèé íåîáõîäèìî âûïîëíèòü âõîä.

www.contester.ru