The task

A 2D array of 0's and 1's is given. The array was filed with a sequence of correctly drawn rectangles of various sizes on different positions. Count the number of the remaining correctly drawn rectangles in the array and calculate the total area of their interiors.


The first input line contains two integer M and N separated by space and specifying the number of rows and the number of columns in a 2D array which is on the next M lines. Each of next M lines contains N values which specify the contents of a row in the array, the values are separated by spaces. Each value is 0 or 1.

It holds 5 ≤ M, N ≤ 1000.


The output contains one text line with two integers separated by space. The first integer represents the number of correctly drawn rectangles in the input array. The second line represents the sum of areas of interiors of all correctly drawn retangles in the input array.

Taidot: Machine Learning (ML), Python, Algoritmi

Näytä lisää: count numbers input text area, money market value total stock market value, drawing rectangle area selection map, stock market value total, flash component input area edit, rectangle area capture screen javascript, subtract previously selected radio button value total, market profile value area excel, find dimensions rectangle area 1000, c++ programming qustion plz give me a answer input the weights in kg of three people who are going to get in to a boat find the, difference between carpet area and built up area, 5 days working it companies in ahmedabad, your theme has 1 widget area, but this particular page doesn’t display it., total-text: a comprehensive dataset for scene text detection and recognition, excel resize chart area without resizing plot area, your theme has 1 other widget area, but this particular page doesn’t display it., count how often a value occurs in excel, 5 calls says it all number, 2.5 2 project performance task a trade show booth answers apex

Tietoa työnantajasta:
( 3 arvostelua ) Prague, Czech Republic

Projektin tunnus: #20087201

Myönnetty käyttäjälle:

                                                's Profile Picture"                                                    >
                                        <div class=

Dear sir. I am a python programming expert. I've got many experience in ML. I am sure I can help you perfectly. Hope to meet and have a talk.

$15 USD 7 päivässä
(8 Arvostelua)

5 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hi, Sir! I have been read your description carefully. I am a python expert and full-stack developer with full time. I want to help you with my python skills. “””” Specially Data Science , Data Analysis “””” i use sciki Lisää

$20 USD 1 päivässä
(40 arvostelua)

Feel fee to contact me for Rectangle_Area .Shoot me message to discuss further more details .We provide the comments,images,videos,demos and live sessions in order to help the [login to view URL] payment only after the wo Lisää

$30 USD 7 päivässä
(26 arvostelua)

Hello. Thank you for the job invite. I noticed that you are looking for an experienced developer. I have experiences of 7+ years of application development using C, C++, C# and Java. It is my main goal to deliver the Lisää

$30 USD 7 päivässä
(0 arvostelua)

Can solve it for you. I am a good competitive programmer and have good DSA knowledge. Will also check for all the corner cases.

$20 USD 7 päivässä
(0 arvostelua)