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
19 pekerja bebas membida secara purata $37 untuk pekerjaan ini
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.
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.