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 21% | |
#3 | 81 c. | Top 29% | |
#4 | 86 c. | Top 36% | |
#5 | 88 c. | Top 43% | |
#6 | 91 c. | Top 50% | |
#7 | 95 c. | Top 57% | |
#8 | 98 c. | Top 64% | |
#9 | 100 c. | Top 71% | |
#10 | 110 c. | Top 79% | |
#11 | 113 c. | Top 86% | |
#12 | 643 c. | Top 93% | |
#13 | 659 c. | Top 100% |