ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Unsorted > задача:


50964 - Increasing or Decreasing

Задачи раздела

• 51103 - Is it a triangle?
• 50945 - Bigger or Smaller
• 50946 - Area of Rectangle
• 50949 - Vowel or Consonant
• 50881 - Exchange the Values
• 51114 - The traveling vehicle
• 50937 - Calculate the Average
• 50947 - Calculate the Average
• 50964 - Increasing or Decreasing
• 50948 - Translate Score into Grade
• 50280 - Division
• 50256 - Sequence
• 50257 - Galls village
• 50266 - Kovrov
• 50254 - Lawyers Council
• 50260 - What about judges?
• 50259 - Many-coloured roads

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.

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