Rectangle area

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 rectangles in the input array.

More information in attachment.

P.S. you need improve and finish code i n the attachment

Skills: Python

See more: oscmax products module columns per row, looping columns row mysql, freeze columns row using javascript html, php loop columns row, compare contents file output match perl, search directory output contents csv, xml thumbnails row columns, php query output loop columns, multiple row merge multiple columns gridview, storing variable number columns row table database, output columns perl, jsf table add row different number columns, php mysql loop row columns, drawing rectangle area selection map, printing perl output columns xls, rectangle area capture screen javascript, add row cell value excel, find dimensions rectangle area 1000, rectangle area complete program, file n ict prom activity 203 website startbootstrap freelancer 1.0 5 startbootstrap freelancer 1.0 5 index html

About the Employer:
( 4 reviews ) Prague, Czech Republic

Project ID: #20086694

19 freelancers are bidding on average $37 for this job


Hi. I can help you to write the code you need in python. I have experience programming in several programming languages including python and can have the project completed in a short time.

$25 USD in 1 day
(103 Reviews)

Hello. Thank you for your project. I am Eric, python expert as you can see my profile. I am sure your project is very suitable for me. Please contact me then you will get good result in a short time. Regards. Eric Bri More

$30 USD in 1 day
(11 Reviews)

Hi, Client!! @$@$@$PLEASE CONTACT ME. I CAN DO IT WONDERFULLY.$@$@$@ ##% Your idea is attracted me to your world. %## I am Python expert. i have various skills. @@PLEASE GIVE ME CHANCE TO PROVE MY SKILLS@@ :-): More

$20 USD in 7 days
(31 Reviews)

Hi, I am an engineer with very high analytical skills and a passion for problem solving. I am currently working on machine learning and other RnD tasks. I have experience dealing with problems like these since I ha More

$40 USD in 7 days
(7 Reviews)

Hello, I am pleasure with your job as detailed. Thank you for the job posting. It’s a pleasure to meet you. I’d really like to work with you on this one if possible! I do have a couple of questions, but first I’d like More

$10 USD in 1 day
(6 Reviews)

Dear Sir I’ve read your job very carefully and understand what you want. I'm a Senior developer with 10+ years experience. I've special skills in Python. Any of your requirements are welcome. I can start your project More

$100 USD in 1 day
(5 Reviews)

Hello I am a highly motivated young technocrat from India. Currently, I am a Ph.D. research scholar in the department of Computer Science & Engineering at Indian Institute of Technology (ISM) Dhanbad, India. I am appr More

$150 USD in 3 days
(6 Reviews)

Dear sir. How are you? I have gone through the requirement and would like to raise my interest in the same. I am an expert at : Python. I believe I have most of the skills that you are seeking and would like to be More

$30 USD in 1 day
(3 Reviews)

I am a Data Entry Expert and proofreading with 15 years of experience. I also have experience in word, PowerPoint and excel. PDF to Word and Excel. My motive is to make my employer Happy without additional charges and More

$50 USD in 1 day
(4 Reviews)

Hi, We can undertake your project perfectly as we have excellent knowledge of Python, Django along with Angular JS. I am familiar with related libraries and frameworks such as Numpy, Pandas, Scikit-learn, Dash-learn et More

$50 USD in 1 day
(1 Review)

hi i am doing competetive programming from more than 5 year. i will completethe task in just few hours. I am doing this only for good review. Please message me . I promise you wont regret.

$10 USD in 1 day
(1 Review)

I am looking for job in .Net and Python. Apart from that I am ready to take projects involving other programming languages like c++, c, c#, Javascript etc. I can type at a comfortable speed of 55wpm without errors. I a More

$15 USD in 3 days
(0 Reviews)

Dear sir/madam, I am a focused professional who has been consistently praised as results-oriented by my co-workers and management. Over the course of my 4-year career, I’ve developed a skill set directly relevant to t More

$10 USD in 7 days
(0 Reviews)
$25 USD in 1 day
(0 Reviews)

Hello. I am very pleasure the opportunity to discuss this job with you. I am a full time freelancer with skills and experience on angular 7.0,HTML5,c,c++,c#,python,PHP and PHP frameworks, Python, Django,JavaScript an More

$30 USD in 7 days
(0 Reviews)

hello, i has great experience of development over 7+ years.. in addition, i has decent experience of c++ and python. i have ever taken part in CodeChef competition. i can do it perfectly, but need more descriptions a More

$50 USD in 1 day
(0 Reviews)

i can provide you solution with source code along comments. in just few hours. I'm up for it lets do it.

$25 USD in 1 day
(0 Reviews)

Dear client. I've got a great interest in your project. I'm a real expert in python. If you become my guest, I will carry out my business with all my ability and sincere enthusiasm. Please contact me so that I could di More

$20 USD in 1 day
(0 Reviews)

Greetings! I have just read your descriptoin & project details and I am very interested in your job. As an experienced developer, I am sure that I can handle your project perfectly. Let me know If you have time to disc More

$20 USD in 7 days
(0 Reviews)