← All problemsSign in

Treat From Himanshu

Himanshu has prepared a tasty feast for you all. But, before enjoying the feast you need to answer one of his query. Query is simple and it won't take you long enjoying the feast once you decode stuff. Himanshu will give you two integers L and R. You need to find sum of numbers from L to R inclusive in minimum time possible. Find it and get your feast! Input First line will contain T, number 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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start