Swimming Pool
The summer is coming and Chef wants to fill his swimming pool with water so that he could enjoy swimming in it during these hot days. The swimming pool is $N$ metres in length (long course) and a fixed width $1$ metre. Its long course is split into $N$ equal parts, with possibly different depths. For each valid $i$, the $i$-th part has depth $D_i$ metres. You should process $Q$ queries. There ar
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