Number in Your Range
CodeChefOpen on judge ↗
You are given two array $a$ and $b$ of the same length $n$. You have to find how many number in array $a$ is in range $a[i] -b[i]$ to $a[i] + b[i]$ for every $i ( 1\le i \le n)$. ###Input: - First line of input contain number of test cases $t$ $(1 \le t \le 10^5)$. - Than first line of every test case is number of element in array $n$ $(1 \le n \le 10^5)$. - Than second line of
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start