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 | 74 c. | Top 11% | |
#3 | 76 c. | Top 17% | |
#4 | 79 c. | Top 28% | |
#5 | 81 c. | Top 33% | |
#6 | 86 c. | Top 39% | |
#7 | 88 c. | Top 44% | |
#8 | 91 c. | Top 50% | |
#9 | 95 c. | Top 56% | |
#10 | 98 c. | Top 67% | |
#11 | 100 c. | Top 72% | |
#12 | 108 c. | Top 78% | |
#13 | 110 c. | Top 83% | |
#14 | 113 c. | Top 89% | |
#15 | 643 c. | Top 94% | |
#16 | 659 c. | Top 100% |