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 6% | |
#2 | 79 c. | Top 19% | |
#3 | 81 c. | Top 25% | |
#4 | 83 c. | Top 31% | |
#5 | 86 c. | Top 38% | |
#6 | 88 c. | Top 44% | |
#7 | 91 c. | Top 50% | |
#8 | 95 c. | Top 56% | |
#9 | 98 c. | Top 63% | |
#10 | 100 c. | Top 69% | |
#11 | 108 c. | Top 75% | |
#12 | 110 c. | Top 81% | |
#13 | 113 c. | Top 88% | |
#14 | 643 c. | Top 94% | |
#15 | 659 c. | Top 100% |