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

  Test a function hydroxide that takes a chemical formula

Write and test a function hydroxide that takes a chemical formula as a parameter and returns True if the chemical is a hydroxide (i.e. ends in OH).

  Write a program to convert miles to kilometers

Write a program to convert miles to kilometers. (Recall that 1 mi = 1.6093440 km.) Write a program to convert pounds to kilograms. (Recall that 1 kg = 2.205 lb.) Write a program to compute the area of A of a circle with radius r.

  Concepts of recursion

Write a 2 page research paper (excluding the title page) on recursion. Explain the concepts discussed in the textbook using at least an example not included in the textbook.

  Cpp program display overtime or regular time pay calculation

Display overtime or regular time pay calculations. See the sample output. Implement object calculations by summarizing your employee objects and display the summary information in the example.

  Write a program for a college''s admissions office

Write a program for a college's admissions office. Create variables that store a numeric high school grade point average andan admission test score.Print the message "Accept" if the studenthas any of the following:

  What does the given code print

What does the following code print: char* s1 = "ABCDE"; char* s2 = "ABCE"; if (strcmp(s1,s2) endl; else cout = " endl.

  What information do you need to find the selling price

To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?

  Ruby implement primitive types

How does Ruby implement primitive types, such as those for integer and floating-point data?  3-What is the single most important practical difference between Smalltalk and C++?

  Create a front­end system for a vending machine

Create a front­end system for a vending machine written in C. The vending machine serves all kinds of pastry treats. The company's name is Penelope's Pastry Delights and as such, the executable you are creating will be called "ppd"

  Output of the given c++ code

What is the output of the given C++ code - You need to find out the output of the given code.

  Write a method that returns the number of digits

Write a method that returns the number of digits in an integer argument; for example, 23,498 has five digits.

  Function named sort that takes three integer parameter

Write a function named sort that takes three integer parameters by reference. The function should rearrange the parameter values so that the first parameter gets set to the smallest value, the second parameter gets set to the second smallest value, a..

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