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 5% | |
#2 | 74 c. | Top 10% | |
#3 | 76 c. | Top 20% | |
#4 | 79 c. | Top 30% | |
#5 | 81 c. | Top 35% | |
#6 | 86 c. | Top 40% | |
#7 | 88 c. | Top 45% | |
#8 | 91 c. | Top 50% | |
#9 | 95 c. | Top 55% | |
#10 | 98 c. | Top 65% | |
#11 | 100 c. | Top 70% | |
#12 | 108 c. | Top 75% | |
#13 | 110 c. | Top 80% | |
#14 | 113 c. | Top 85% | |
#15 | 257 c. | Top 90% | |
#16 | 643 c. | Top 95% | |
#17 | 659 c. | Top 100% |