Kapalı

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

Beceriler: Python

Daha fazlasını gör: 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

İşveren Hakkında:
( 4 değerlendirme ) Prague, Czech Republic

Proje NO: #20086694

Bu iş için 19 freelancer ortalamada $37 teklif veriyor

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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(103 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(11 Değerlendirme)
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@@ :-): Daha Fazla

$20 USD in 7 gün içinde
(31 Değerlendirme)
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 Daha Fazla

$40 USD in 7 gün içinde
(7 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(6 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(5 Değerlendirme)
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 Daha Fazla

$150 USD in 3 gün içinde
(6 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(3 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(4 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)
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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)
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 Daha Fazla

$15 USD in 3 gün içinde
(0 Değerlendirme)
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 Daha Fazla

$10 USD in 7 gün içinde
(0 Değerlendirme)
0.0
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
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 Daha Fazla

$30 USD in 7 gün içinde
(0 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
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 Daha Fazla

$20 USD in 7 gün içinde
(0 Değerlendirme)
0.0