Write a c++ program to accept an n*m matrix

Assignment Help C/C++ Programming
Reference no: EM13937880

Write a C++ program to accept an n*m matrix containing only 0 and 1 values, and then find it's biggest zero submatrix i.e. the biggest submatrix in which all the values are 0.

INPUT

First line contains two numbers n, m (n,m<=300),
then n lines, each having m 0/1 digits.

OUTPUT

One number, which represent the number of zeros inside the biggest zero submatrix.

SAMPLE INPUT

6 5
0 0 0 0 0
0 1 1 1 0
0 1 0 1 0
0 1 1 1 0
0 0 0 0 0
0 0 0 0 0

SAMPLE OUTPUT

10

Reference no: EM13937880

Questions Cloud

Drawing rights with the international monetary fund : Drawing rights with the International Monetary Fund
Assets and liabilities of her coin-operated laundry : Janet Jones sold the assets and liabilities of her coin-operated laundry to Kevin Katz for $10,000. The assets of the business included all of the washers and dryers. After Katz failed to make an installment payment when it was due, Dryer Company sue..
What does recognize revenue mean in accounting : What does recognize revenue mean in accounting? What is the matching principle? What is an accrual? What is a deferral?
Using, finkelstein methodology : A local pharmacy store in Wollongong wants to develop an online system to track their product inventory as well as prescription records of their products for regulatory requirements. As part of systems development, a data model is required to dete..
Write a c++ program to accept an n*m matrix : Write a C++ program to accept an n*m matrix containing only 0 and 1 values, and then find it's biggest zero submatrix i.e. the biggest submatrix in which all the values are 0.
Explain the reasons as to why atc is u-shaped : Analyze the effect a $300 price ceiling would have on the market for ten-speed bicycles. Would this be a binding price ceiling?
Discuss the probable outcome of the lawsuits : A young stockbroker was rather overwhelmed by a flood of new clients. Assunta, one of his clients, had purchased XYZ Corp. stock through the broker at a price of $35 per share. The price had gone down to $29 by the time Assunta telephoned the broker...
What are the advantages of the corporate form of ownership : What are the advantages of the corporate form of ownership? What are the disadvantages of the corporate form of ownership?
Parties had made during their prior negotiations : Jones and Clark entered into a written contract for the purchase of an apartment building by Clark. The contract was carefully drafted to set forth the agreement of the parties. It was signed by both parties. Clark subsequently claimed that the contr..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a recursive and iterative versions of binary search

in C++ write a recursive and iterative versions of binary search and compare their run times using the array a[i]=i, i=0,..., n-1

  Create an array of objects from the provided code

Create an array of objects from the provided code and run a for loop to assign strings and numbers. In this assignment, I will need to see the main function. Make sure there is a default constructor.

  Write function named enough that takes one integer argument

Write a function named "enough" that takes one integer argument, call it "goal" and returns as its value the smallest positive integer n for which 1+2+3+. . . +n is at least equal to goal .

  Write a program that create a

Write a program that allows a user to navigate a robot through a maze from the start position at the bottom left of the maze, to the centre of the maze.

  Css training program

What are the training objectives for the CSS training program? Indicate how these objectives are tied to the KSA requirements. Assume that all trainees have college degrees but need KSAs in all other areas listed in the qualifications section.

  Evaluate effectiveness of simple branch prediction schemes

You need to explore the effectiveness of branch direction prediction (taken vs not taken) using an actual program. Your task is to use the given branch prediction simulation infrastructure to evaluate the effectiveness of some simple branch predic..

  Program that will ask for a month

Write a program that will ask for a month (1-12) and a year (yyyy). the program should then produce a calendar showing the month name and year and have all of the days displayed under it.

  Write a program that allows users to enter a dollar amount

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50. Include an approriate sentinel ..

  To arrange the elements of an integer array

Write a ‘C’ functions to arrange the elements of an integer array in such a way that all the negative elements are before the positive elements. The array is passed to it as an argument.

  Display a list of items and the location in the store

The program should display a list of items and the location in the store. The user must be able to enter the items and location in the store. You will use a class for the items. For this assignment you will implement creating the list, adding eleme..

  Question 1 what basic differences exist between the

question 1 what fundamental differences exist between object-oriented and relational database systems?question 2

  Programing in c data validity

write a main function to input 20 integers in the range of 1 to 6. write a function count the number of times the numbers 2 and 5 occur. the function should declare static variables count2 and count5. check the data validity in the main functi..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd