Increasing Matrix Row

Write a program that finds out whether a given matrix has an increasing row; that is, a row where each element (except the first) is strictly larger than the preceding one.

Input

The input presents first the dimensions of the matrix, non-negative integers mm and nn, both in the same line; then mm lines follow, each containing nn integers: each line is a matrix row.

Output

The first row of the matrix where all elements, except the first, are strictly larger than the preceding element, if some such row exists; the text "No increasing row found." otherwise.

Problem information

Author: ProAl1 professors

Generation: 2026-01-25T19:40:41.862Z

© Jutge.org, 2006–2026.
https://jutge.org