Find the total area covered by a list of rectangles.
Given a list of rectangles defined by their top-left corner coordinates and their width and height (all are positive integers), find the total area covered by the rectangles. The rectangles may overlap.
# | Size | % | Users |
---|---|---|---|
#1 | 69 c. | Top 8% | |
#2 | 79 c. | Top 23% | |
#3 | 81 c. | Top 31% | |
#4 | 86 c. | Top 38% | |
#5 | 88 c. | Top 46% | |
#6 | 91 c. | Top 54% | |
#7 | 95 c. | Top 62% | |
#8 | 98 c. | Top 69% | |
#9 | 100 c. | Top 77% | |
#10 | 110 c. | Top 85% | |
#11 | 113 c. | Top 92% | |
#12 | 643 c. | Top 100% |