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
Bu iş için 19 freelancer ortalamada $37 teklif veriyor
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.
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
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
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
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
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
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
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.
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
i can provide you solution with source code along comments. in just few hours. I'm up for it lets do it.
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