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 7% | |
#2 | 79 c. | Top 20% | |
#3 | 81 c. | Top 27% | |
#4 | 86 c. | Top 33% | |
#5 | 88 c. | Top 40% | |
#6 | 91 c. | Top 47% | |
#7 | 95 c. | Top 53% | |
#8 | 98 c. | Top 60% | |
#9 | 100 c. | Top 67% | |
#10 | 108 c. | Top 73% | |
#11 | 110 c. | Top 80% | |
#12 | 113 c. | Top 87% | |
#13 | 643 c. | Top 93% | |
#14 | 659 c. | Top 100% |