First Impression
CodeChefOpen on judge ↗
Kabir wants to impress Tara by showing her his problem solving skills. He has decided to give the correct answer to the next question which will be asked by his Algorithms teacher. The question asked is: Find the sum of alternate consecutive $d$ odd numbers from the range $L$ to $R$ inclusive. if $d$ is 3 and $L$ is 10 and $R$ is 34, then the odd numbers between 10 and 34 are $11,13,15,17,1
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