Practice · 3 of 4
Range Add, Point Query
CHALLENGE
Difficulty: intermediate+25 XP
**Bài toán.** Zero-initialized array of size n, q operations:
1 l r v adds v to [l, r]; 2 p prints a[p].
**Constraints:** 1 ≤ n, q ≤ 200 000; |v| ≤ 10^9; answers fit in long long.
Press Submit to check your solution.
Back to lesson: Practice: Fenwick Variant Drills