- 3
Task is to find out the row in which total number of positive elements is bigger.
Input: First line contains N and M (1<= N ,M <= 100). Then N lines that containts exactly M numbers each are inputed. Output: Output have to contain the index of the row in which total number of positive elements is bigger. If in each row we are equal number of positives output "Numbers are equal". N.B. It's guaranty that only one row at once will have more positive element that others. Input Output 2 3 2 1 -1 3 2 2 2 3 4 1 1 -3 1 Numbers are equal -4 2 2 1 1 - 2 2 1 https://code.sololearn.com/c75I2NZhq6Td/#cpp
1 Respuesta
0
https://code.sololearn.com/cZUv3yXOvmwG/?ref=app