Закрыт

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.

Input

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.

Output

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

Квалификация: Python

Показать больше 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

О работодателе:
( 4 отзыв(-а, -ов) ) Prague, Czech Republic

ID проекта: #20086694

19 фрилансеров(-а) в среднем готовы выполнить эту работу за $37

ne0ph0enix

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 за 1 день
(103 отзывов(-а))
5.9
nisharapath

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 Больше

$30 USD за 1 день
(11 отзывов(-а))
5.6
susanna2018

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@@ :-): Больше

$20 USD за 7 дней(-я)
(31 отзывов(-а))
5.3
dilichan

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 Больше

$40 USD за 7 дней(-я)
(7 отзывов(-а))
4.0
sodiqa32

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 Больше

$10 USD за 1 день
(6 отзывов(-а))
3.7
coco007

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 Больше

$100 USD за 1 день
(5 отзывов(-а))
3.9
amariitism

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 Больше

$150 USD за 3 дней(-я)
(6 отзывов(-а))
3.5
Molotova

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 Больше

$30 USD за 1 день
(3 отзывов(-а))
3.2
Orientwork

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 Больше

$50 USD за 1 день
(4 отзывов(-а))
2.9
GenuineSoft

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 Больше

$50 USD за 1 день
(1 отзыв)
2.0
vivekdwivedi2424

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 за 1 день
(1 отзыв)
0.0
mavacious

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 Больше

$15 USD за 3 дней(-я)
(0 отзывов(-а))
0.0
mohammadhaisam

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 Больше

$10 USD за 7 дней(-я)
(0 отзывов(-а))
0.0
$25 USD за 1 день
(0 отзывов(-а))
0.0
ZhangHuaQiang

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 Больше

$30 USD за 7 дней(-я)
(0 отзывов(-а))
1.2
blackstone0621

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 Больше

$50 USD за 1 день
(0 отзывов(-а))
0.0
noumanmalikfb

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

$25 USD за 1 день
(0 отзывов(-а))
0.0
lzx0102

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 Больше

$20 USD за 1 день
(0 отзывов(-а))
0.0
sunearthmoon

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 Больше

$20 USD за 7 дней(-я)
(0 отзывов(-а))
0.0