Rectangle Additions on a Grid
An r x c grid starts at zero. Each update (r1, c1, r2, c2, v) adds v to every cell inside the rectangle (inclusive, 0-indexed). Print the final grid.
Constraints
1 <= r, c <= 1000 1 <= q <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.