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

  Only letters are affected

You are to write a ROT13 (for "rotate 13") decoder to translate a secret message from its encoded state to something readable. In a ROT13 code, 'a' is shifted 13 letters to 'n', 'B' to 'O', 'c' to 'p', 'D' to 'Q', ..., 'N' to 'A', 'o' to 'b', 'P' ..

  An application that instantiates five librarybook object

Write an application that instantiates five LibraryBook objects

  Writing function that computes leap years

Write down function that computes leap years. Function prototype is as follows: Write function body which returns true if year is a leap year and false if year is not a leap year.

  Features with the real life scenarios

Explain any three features that must be implemented by the application that will be created by WebSoft Solutions Pvt. Ltd. Support your answer with suitable examples. Relate the features with the real life scenarios

  Write a program that uses a function for swapping

Write a program that uses a function for swapping a two numbers. Note: The program requires the user to enter the numbers via the keyboard and determine and display whether a number is odd or even.

  Declare and initialize an appropriate variable

Show the source code for a C# console application names ‘Sibs' that prints your frist name on the first line, your last name on the second line, and the number of siblings you have on the third line Declare and initialize an appropriate variable fo..

  Elements that must be included in a loop

What are the three elements that must be included in a loop in order for the loop to successfully perform correctly - What will happen if these statements are not included? Provide examples.

  Computer programming

Computer programming

  Write an array-returning method

Write an array-returning method that takes a two-dimensional array of chars as a parameter and returns a single-dimensional array of Strings as follows:

  Write an application that creates a quiz

Write an application that creates a quiz, which contains at least 5 questions about a hobby, popular music, astronomy, or any other personal interest.

  Positive integer value, and computes

Write a function in c++ that reads a positive integer value, and computes

  Implementation of data member counter of type int

Write the implementation (.cpp file) of Counter class. Here is the full specification of the class: A data member counter of type int.

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