Build the ladder
CodeChefOpen on judge ↗
You are building a two way,triangular ladder. The ladder has N levels, numbered 1 through N from top to bottom. You have 3 types of marbles a,b,c, and you've decided to use them in the following manner: Within each row, you will select the types of the marbles such that there is an equal number of marbles of each type used in that level. For example, consider the following two- "two way ladders":
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