|
|||
Monotonicity
Write a program that reads integers from the standard input. The first number of each line determines how many
additional numbers are given in that line. For each line, determine whether the sequence from the second
number to the end of the line is monotonous, and if so, write „monoton” (monotonous in Hungarian),
otherwise „nem monoton” (nonmonotonous in Hungarian) to the standard output. Sample Input
Output for Sample Input
One possible solution is available in: main.c.
Acknowledgement
This work was supported by the construction EFOP-3.4.3-16-2016-00021. The project was supported by the European Union, co-financed by the European Social Fund.
|
|||
University of Debrecen; Faculty of Informatics; v. 03/01/2019 |