Python 8 lines, 82 ms (beats 100%)
Submission\nhttps://leetcode.com/problems/increment-submatrices-by-one/submissions/1443255864/\n\n# Code\npython3 []\nclass Solution:\n    def rangeAddQueries(s
# Submission\nhttps://leetcode.com/problems/increment-submatrices-by-one/submissions/1443255864/\n\n# Code\n```python3 []\nclass Solution:\n    def rangeAddQueries(self, n: int, queries: List[List[int]]) -> List[List[int]]:\n        acc = [[0] * (n + 1) for _ in range(n + 1)]\n        for r1, c1, r2, c2 in queries:\n            acc[r1][c1] += 1\n            acc[r2 + 1][c1] -= 1\n            acc[r1][c2 + 1] -= 1\n            acc[r2 + 1][c2 + 1] += 1\n\n        acc = [accumulate(c) for c in zip(*acc[:-1])]\n        return [list(accumulate(r)) for r in zip(*acc[:-1])]\n```
['Python3']