You Cant See Me
CodeChefOpen on judge ↗
You have the series: 1,3,5,7,10,12,15,17,... Given a left index L and a right index R as query, output A[L] + A[L+1] + .. + A[R]. INPUT First line will contain a single integer Q, number of queries. Next Q lines will contain two space separated integers L and R. OUTPUT Output single line for every test case giving sum of numbers in the range L to R inclusive. CONSTRAINTS 1 5 1 5 EXAMPLE
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