Please solve the programming task below using a self-contained code snippet in a markdown code block.

There is a long and thin painting that can be represented by a number line. You are given a 0-indexed 2D integer array paint of length n, where paint[i] = [starti, endi]. This means that on the ith day you need to paint the area between starti and endi.
Painting the same area multiple times will create an uneven painting so you only want to paint each area of the painting at most once.
Return an integer array worklog of length n, where worklog[i] is the amount of new area that you painted on the ith day.
 
Please complete the following python code precisely:
```python
class Solution:
    def amountPainted(self, paint: List[List[int]]) -> List[int]:
```