Burles
CodeChefOpen on judge ↗
There is an $n×m$ grid. You are standing at cell $(1,1)$ and your goal is to finish at cell $(n,m)$. You can move to the neighboring cells to the right or down. In other words, suppose you are standing at cell $(x,y)$. You can: move right to the cell $(x,y+1)$ — it costs $x$ burles; move down to the cell $(x+1,y)$ — it costs $y$ burles. Can you reach cell $(n,m)$ spending exactly $k$ burles? ##
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