← All problemsSign in

Snowy Hills

CodeChefRating 2194Open on judge ↗

Hyder's summer vacation is about to begin, and he has planned a trip to the Snowy Hills. Unfortunately, since he does not have a personal accountant yet, he needs your help to calculate the total cost of his journey. There are infinitely many checkpoints in the snowy hills, numbered $1, 2, 3, \ldots$ in increasing order of altitude. Hyder wants to visit some of these checkpoints in a given order

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